diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-03-10 23:08:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 23:08:31 +0300 |
commit | c11469e4199405628e97650914f0cdbdea94dac7 (patch) | |
tree | af07edd44b6ac95fa3cd6e439d435cf6c55e9ad5 /plugins/SitesManager | |
parent | 05082abdca8909cf27137773f129cf66f495922b (diff) |
[Codingstyle] Disallow unused use statements (#18520)
* Forbid unused use statements
* Fix some incorrect classnames
* fix tests
* remove unused use statements
Diffstat (limited to 'plugins/SitesManager')
-rw-r--r-- | plugins/SitesManager/API.php | 3 | ||||
-rw-r--r-- | plugins/SitesManager/Controller.php | 4 | ||||
-rw-r--r-- | plugins/SitesManager/Menu.php | 1 | ||||
-rw-r--r-- | plugins/SitesManager/Model.php | 1 | ||||
-rw-r--r-- | plugins/SitesManager/SiteUrls.php | 1 | ||||
-rw-r--r-- | plugins/SitesManager/SitesManager.php | 1 | ||||
-rw-r--r-- | plugins/SitesManager/tests/Fixtures/ManySites.php | 2 | ||||
-rw-r--r-- | plugins/SitesManager/tests/Integration/SitesManagerTest.php | 1 | ||||
-rw-r--r-- | plugins/SitesManager/tests/Unit/APITest.php | 2 |
9 files changed, 1 insertions, 15 deletions
diff --git a/plugins/SitesManager/API.php b/plugins/SitesManager/API.php index 2c800586c5..e213ff1c96 100644 --- a/plugins/SitesManager/API.php +++ b/plugins/SitesManager/API.php @@ -11,7 +11,6 @@ namespace Piwik\Plugins\SitesManager; use DateTimeZone; use Exception; use Piwik\Access; -use Piwik\CacheId; use Piwik\Common; use Piwik\Container\StaticContainer; use Piwik\Date; @@ -29,10 +28,8 @@ use Piwik\Scheduler\Scheduler; use Piwik\SettingsPiwik; use Piwik\SettingsServer; use Piwik\Site; -use Piwik\Tracker; use Piwik\Tracker\Cache; use Piwik\Tracker\TrackerCodeGenerator; -use Piwik\Measurable\Type; use Piwik\Translation\Translator; use Piwik\Url; use Piwik\UrlHelper; diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index 1b171533c0..79e671a720 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -13,16 +13,12 @@ use Piwik\API\Request; use Piwik\API\ResponseBuilder; use Piwik\Common; use Piwik\Container\StaticContainer; -use Piwik\Exception\UnexpectedWebsiteFoundException; use Piwik\Piwik; use Piwik\Plugin\Manager; use Piwik\Session; -use Piwik\Settings\Measurable\MeasurableSettings; use Piwik\SettingsPiwik; -use Piwik\Site; use Piwik\Tracker\TrackerCodeGenerator; use Piwik\Url; -use Piwik\View; use Piwik\Http; use Piwik\Plugins\SitesManager\GtmSiteTypeGuesser; use Matomo\Cache\Lazy; diff --git a/plugins/SitesManager/Menu.php b/plugins/SitesManager/Menu.php index 76ad41ba32..4a629a6b4d 100644 --- a/plugins/SitesManager/Menu.php +++ b/plugins/SitesManager/Menu.php @@ -11,7 +11,6 @@ namespace Piwik\Plugins\SitesManager; use Piwik\Menu\MenuAdmin; use Piwik\Piwik; use Piwik\Measurable\Type\TypeManager; -use Piwik\Plugins\WebsiteMeasurable; class Menu extends \Piwik\Plugin\Menu { diff --git a/plugins/SitesManager/Model.php b/plugins/SitesManager/Model.php index 18c9acf491..1a5c63d1f7 100644 --- a/plugins/SitesManager/Model.php +++ b/plugins/SitesManager/Model.php @@ -9,7 +9,6 @@ namespace Piwik\Plugins\SitesManager; use Piwik\Access; -use Piwik\Date; use Piwik\Db; use Piwik\Common; use Exception; diff --git a/plugins/SitesManager/SiteUrls.php b/plugins/SitesManager/SiteUrls.php index 2441b823fe..530577b9ac 100644 --- a/plugins/SitesManager/SiteUrls.php +++ b/plugins/SitesManager/SiteUrls.php @@ -11,7 +11,6 @@ namespace Piwik\Plugins\SitesManager; use Piwik\Cache; use Piwik\Common; use Piwik\Tracker\Request; -use Piwik\Tracker\Visitor; class SiteUrls { diff --git a/plugins/SitesManager/SitesManager.php b/plugins/SitesManager/SitesManager.php index 42879c1d51..7b0b305cd0 100644 --- a/plugins/SitesManager/SitesManager.php +++ b/plugins/SitesManager/SitesManager.php @@ -14,7 +14,6 @@ use Piwik\Common; use Piwik\Config; use Piwik\Container\StaticContainer; use Piwik\Date; -use Piwik\Exception\UnexpectedWebsiteFoundException; use Piwik\Option; use Piwik\Piwik; use Piwik\Plugins\CoreHome\SystemSummary; diff --git a/plugins/SitesManager/tests/Fixtures/ManySites.php b/plugins/SitesManager/tests/Fixtures/ManySites.php index a4a25fc0d7..f070a53174 100644 --- a/plugins/SitesManager/tests/Fixtures/ManySites.php +++ b/plugins/SitesManager/tests/Fixtures/ManySites.php @@ -7,9 +7,7 @@ */ namespace Piwik\Plugins\SitesManager\tests\Fixtures; -use Piwik\Plugin; use Piwik\Plugins\MobileAppMeasurable; -use Piwik\Plugins\WebsiteMeasurable; use Piwik\Tests\Framework\Fixture; /** diff --git a/plugins/SitesManager/tests/Integration/SitesManagerTest.php b/plugins/SitesManager/tests/Integration/SitesManagerTest.php index f4605122f9..2dcbba313a 100644 --- a/plugins/SitesManager/tests/Integration/SitesManagerTest.php +++ b/plugins/SitesManager/tests/Integration/SitesManagerTest.php @@ -9,7 +9,6 @@ namespace Piwik\Plugins\SitesManager\tests\Integration; use Piwik\Cache; -use Piwik\Archive\ArchiveInvalidator; use Piwik\Common; use Piwik\Container\StaticContainer; use Piwik\Date; diff --git a/plugins/SitesManager/tests/Unit/APITest.php b/plugins/SitesManager/tests/Unit/APITest.php index 267f6fd9c8..15b46171ac 100644 --- a/plugins/SitesManager/tests/Unit/APITest.php +++ b/plugins/SitesManager/tests/Unit/APITest.php @@ -21,7 +21,7 @@ use Piwik\Tests\Framework\Fixture; class APITest extends \PHPUnit\Framework\TestCase { /** - * @var Api + * @var API */ private $api; |