mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-19 01:22:22 +00:00
fix cs
This commit is contained in:
parent
39cc722d92
commit
0d05e11bce
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
$possibleAutoloadPaths = [
|
||||
__DIR__ . '/../vendor/autoload.php', // composer require ... | repository
|
||||
__DIR__ . '/../../../vendor/autoload.php' // composer create-project
|
||||
__DIR__ . '/../../../vendor/autoload.php', // composer create-project
|
||||
];
|
||||
|
||||
foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {
|
||||
|
|
|
@ -12,7 +12,6 @@ gc_disable();
|
|||
// Require Composer autoload.php
|
||||
require_once __DIR__ . '/bootstrap.php';
|
||||
|
||||
|
||||
try {
|
||||
// 1. Detect configuration
|
||||
ConfigFilePathHelper::detectFromInput('rector', new ArgvInput);
|
||||
|
@ -32,7 +31,6 @@ try {
|
|||
$application = $container->get(Application::class);
|
||||
$statusCode = $application->run();
|
||||
exit($statusCode);
|
||||
|
||||
} catch (Throwable $throwable) {
|
||||
$symfonyStyle = SymfonyStyleFactory::create();
|
||||
$symfonyStyle->error($throwable->getMessage());
|
||||
|
|
|
@ -47,7 +47,7 @@ final class AppKernel extends Kernel
|
|||
public function registerBundles(): array
|
||||
{
|
||||
return [
|
||||
new RectorBundle
|
||||
new RectorBundle,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@ final class RectorsExtension extends Extension
|
|||
$this->rectorClassValidator->validate($rectors);
|
||||
|
||||
foreach ($rectors as $rector) {
|
||||
|
||||
$this->registerRectorIfNotYet($rector); // for custom rectors
|
||||
// // add to active configuration
|
||||
// dump($rector);
|
||||
|
|
|
@ -6,5 +6,4 @@ use Exception;
|
|||
|
||||
final class InvalidRectorClassException extends Exception
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ final class RectorClassValidator
|
|||
}
|
||||
|
||||
throw new InvalidRectorClassException(sprintf(
|
||||
'Rector "%s" is not supported. Use class that implements %s.',
|
||||
'Rector "%s" is not supported. Use class that implements "%s".',
|
||||
$rector,
|
||||
RectorInterface::class
|
||||
));
|
||||
|
|
Loading…
Reference in New Issue
Block a user