From 415aa9af7aea5c5343650141a5637f2540168897 Mon Sep 17 00:00:00 2001 From: Geni Jaho Date: Fri, 3 May 2024 18:08:40 +0200 Subject: [PATCH] Remove redundant rule in laravel-static-to-injection set (#208) * Remove redundant rule in laravel-static-to-injection set --- config/sets/laravel-static-to-injection.php | 41 --------------------- 1 file changed, 41 deletions(-) diff --git a/config/sets/laravel-static-to-injection.php b/config/sets/laravel-static-to-injection.php index 5dac4610..421663bf 100644 --- a/config/sets/laravel-static-to-injection.php +++ b/config/sets/laravel-static-to-injection.php @@ -3,7 +3,6 @@ declare(strict_types=1); use Rector\Config\RectorConfig; -use Rector\Renaming\Rector\Name\RenameClassRector; use Rector\Transform\Rector\FuncCall\FuncCallToNewRector; use Rector\Transform\Rector\StaticCall\StaticCallToMethodCallRector; use Rector\Transform\ValueObject\StaticCallToMethodCall; @@ -225,44 +224,4 @@ ]); $rectorConfig->rule(HelperFuncCallToFacadeClassRector::class); - - $rectorConfig - ->ruleWithConfiguration(RenameClassRector::class, [ - 'App' => 'Illuminate\Support\Facades\App', - 'Artisan' => 'Illuminate\Support\Facades\Artisan', - 'Auth' => 'Illuminate\Support\Facades\Auth', - 'Blade' => 'Illuminate\Support\Facades\Blade', - 'Broadcast' => 'Illuminate\Support\Facades\Broadcast', - 'Bus' => 'Illuminate\Support\Facades\Bus', - 'Cache' => 'Illuminate\Support\Facades\Cache', - 'Config' => 'Illuminate\Support\Facades\Config', - 'Cookie' => 'Illuminate\Support\Facades\Cookie', - 'Crypt' => 'Illuminate\Support\Facades\Crypt', - 'DB' => 'Illuminate\Support\Facades\DB', - 'Date' => 'Illuminate\Support\Facades\Date', - 'Event' => 'Illuminate\Support\Facades\Event', - 'Facade' => 'Illuminate\Support\Facades\Facade', - 'File' => 'Illuminate\Support\Facades\File', - 'Gate' => 'Illuminate\Support\Facades\Gate', - 'Hash' => 'Illuminate\Support\Facades\Hash', - 'Http' => 'Illuminate\Support\Facades\Http', - 'Lang' => 'Illuminate\Support\Facades\Lang', - 'Log' => 'Illuminate\Support\Facades\Log', - 'Mail' => 'Illuminate\Support\Facades\Mail', - 'Notification' => 'Illuminate\Support\Facades\Notification', - 'Password' => 'Illuminate\Support\Facades\Password', - 'Queue' => 'Illuminate\Support\Facades\Queue', - 'RateLimiter' => 'Illuminate\Support\Facades\RateLimiter', - 'Redirect' => 'Illuminate\Support\Facades\Redirect', - 'Redis' => 'Illuminate\Support\Facades\Redis', - 'Request' => 'Illuminate\Http\Request', - 'Response' => 'Illuminate\Support\Facades\Response', - 'Route' => 'Illuminate\Support\Facades\Route', - 'Schema' => 'Illuminate\Support\Facades\Schema', - 'Session' => 'Illuminate\Support\Facades\Session', - 'Storage' => 'Illuminate\Support\Facades\Storage', - 'URL' => 'Illuminate\Support\Facades\URL', - 'Validator' => 'Illuminate\Support\Facades\Validator', - 'View' => 'Illuminate\Support\Facades\View', - ]); };