File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 44
55declare (strict_types=1 );
66
7+ use Rector \Scripts \Finder \RectorClassFinder ;
8+ use Rector \Console \ExitCode ;
9+
710require __DIR__ . '/../vendor/autoload.php ' ;
811
9- $ rectorClassFinder = new \ Rector \ Scripts \ Finder \ RectorClassFinder ();
12+ $ rectorClassFinder = new RectorClassFinder ();
1013$ rectorClassNames = $ rectorClassFinder ->find ([
1114 __DIR__ . '/../src ' ,
1215 __DIR__ . '/../rules ' ,
3639if ($ duplicatedShortClassNames === []) {
3740 // good
3841 echo "All Rector class names are unique! \n" ;
39- exit (\ Rector \ Console \ ExitCode::SUCCESS );
42+ exit (ExitCode::SUCCESS );
4043}
4144
4245echo "The following Rector class names are duplicated: \n" ;
4346foreach ($ duplicatedShortClassNames as $ duplicatedShortClassName ) {
4447 echo sprintf ("- %s \n" , $ duplicatedShortClassName );
4548}
4649
47- exit (\ Rector \ Console \ ExitCode::FAILURE );
50+ exit (ExitCode::FAILURE );
You can’t perform that action at this time.
0 commit comments