Skip to content

Commit 265edf7

Browse files
committed
[ci-review] Rector Rectify
1 parent a9986fb commit 265edf7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/unique-rector-short-class-name.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44

55
declare(strict_types=1);
66

7+
use Rector\Scripts\Finder\RectorClassFinder;
8+
use Rector\Console\ExitCode;
9+
710
require __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',
@@ -36,12 +39,12 @@
3639
if ($duplicatedShortClassNames === []) {
3740
// good
3841
echo "All Rector class names are unique!\n";
39-
exit(\Rector\Console\ExitCode::SUCCESS);
42+
exit(ExitCode::SUCCESS);
4043
}
4144

4245
echo "The following Rector class names are duplicated:\n";
4346
foreach ($duplicatedShortClassNames as $duplicatedShortClassName) {
4447
echo sprintf("- %s\n", $duplicatedShortClassName);
4548
}
4649

47-
exit(\Rector\Console\ExitCode::FAILURE);
50+
exit(ExitCode::FAILURE);

0 commit comments

Comments
 (0)