Skip to content

Commit

Permalink
Merge pull request #8044 from samsonasik/rector-enable-remove-unused-…
Browse files Browse the repository at this point in the history
…imports

[Rector] Enable $rectorConfig->removeUnusedImports()
  • Loading branch information
samsonasik authored Oct 16, 2023
2 parents 50bd285 + 576dd68 commit 08458d3
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@

// auto import fully qualified class names
$rectorConfig->importNames();
$rectorConfig->removeUnusedImports();

$rectorConfig->rule(UnderscoreToCamelCaseVariableNameRector::class);
$rectorConfig->rule(SimplifyUselessVariableRector::class);
Expand Down
1 change: 0 additions & 1 deletion system/Router/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Config\Routing;
use Config\Services;
use InvalidArgumentException;
use Locale;

/**
* @todo Implement nested resource routing (See CakePHP)
Expand Down
1 change: 0 additions & 1 deletion system/Session/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

use CodeIgniter\Cookie\Cookie;
use CodeIgniter\I18n\Time;
use Config\App;
use Config\Cookie as CookieConfig;
use Config\Services;
use Config\Session as SessionConfig;
Expand Down
2 changes: 0 additions & 2 deletions system/Test/FeatureTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
use CodeIgniter\HTTP\CLIRequest;
use CodeIgniter\HTTP\Exceptions\RedirectException;
use CodeIgniter\HTTP\IncomingRequest;
use CodeIgniter\HTTP\Request;
use CodeIgniter\HTTP\URI;
use CodeIgniter\HTTP\UserAgent;
use CodeIgniter\Router\RouteCollection;
use Config\App;
use Config\Services;
use Exception;
Expand Down
1 change: 0 additions & 1 deletion system/Validation/FileRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

use CodeIgniter\HTTP\CLIRequest;
use CodeIgniter\HTTP\IncomingRequest;
use CodeIgniter\HTTP\Request;
use CodeIgniter\HTTP\RequestInterface;
use Config\Mimes;
use Config\Services;
Expand Down
1 change: 0 additions & 1 deletion tests/system/Helpers/URLHelper/SiteUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use CodeIgniter\Config\Services;
use CodeIgniter\HTTP\IncomingRequest;
use CodeIgniter\HTTP\SiteURIFactory;
use CodeIgniter\HTTP\URI;
use CodeIgniter\HTTP\UserAgent;
use CodeIgniter\Superglobals;
use CodeIgniter\Test\CIUnitTestCase;
Expand Down
1 change: 0 additions & 1 deletion tests/system/Test/FilterTestTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

namespace CodeIgniter\Test;

use CodeIgniter\Filters\Filters;
use CodeIgniter\HTTP\RequestInterface;
use Tests\Support\Filters\Customfilter;

Expand Down

0 comments on commit 08458d3

Please sign in to comment.