Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizen-ci committed Feb 10, 2021
1 parent 79cae16 commit 85156e4
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/PhpParser/NodeTraverser/RectorNodeTraverser.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,24 +135,6 @@ public function getZeroCacheRectorCount(): int
return count($zeroCacheRectors);
}

/**
* Mostly used for testing
*/
private function activateEnabledRectorOnly(): void
{
$this->visitors = [];

$enabledRector = $this->enabledRectorProvider->getEnabledRector();
foreach ($this->allPhpRectors as $phpRector) {
if (! is_a($phpRector, $enabledRector, true)) {
continue;
}

$this->addVisitor($phpRector);
break;
}
}

private function hasFileNodeRectorsEnabled(): bool
{
foreach ($this->visitors as $visitor) {
Expand Down

0 comments on commit 85156e4

Please sign in to comment.