src/PhpParser/NodeTraverser/RectorNodeTraverser.php
private function configureEnabledRectorsOnly(): void
    {
        $this->visitors = [];
        $enabledRectors = $this->enabledRectorsProvider->getEnabledRectors();

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

                $this->addRectorConfiguration($configuration, $phpRector);

                $this->addVisitor($phpRector);
                continue 2;
            }
        }
    }
private function configureEnabledRectorsOnly(): void
    {
        $this->visitors = [];
        $enabledRectors = $this->enabledRectorsProvider->getEnabledRectors();

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

                $this->addRectorConfiguration($configuration, $phpRector);

                $this->addVisitor($phpRector);
                continue 2;
            }
        }
    }
private function configureEnabledRectorsOnly ( ) : void { $ this -> visitors = [ ] ; $ enabledRectors = $ this -> enabledRectorsProvider -> getEnabledRectors ( ) ; foreach ( $ enabledRectors as $ enabledRector => $ configuration ) { foreach ( $ this -> allPhpRectors as $ phpRector ) { if ( ! is_a ( $ phpRector , $ enabledRector , true ) ) { continue ; } $ this -> addRectorConfiguration ( $ configuration , $ phpRector ) ; $ this -> addVisitor ( $ phpRector ) ; continue 2 ; } } }
Mostly used for testing
Mostly used for testing