Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rector] Enable $rectorConfig->removeUnusedImports() #8044

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading