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/CoreAdminHome | |
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/CoreAdminHome')
9 files changed, 0 insertions, 19 deletions
diff --git a/plugins/CoreAdminHome/API.php b/plugins/CoreAdminHome/API.php index 32f269ff70..b922733c45 100644 --- a/plugins/CoreAdminHome/API.php +++ b/plugins/CoreAdminHome/API.php @@ -14,7 +14,6 @@ use Monolog\Logger; use Piwik\Access; use Piwik\ArchiveProcessor\Rules; use Piwik\ArchiveProcessor; -use Piwik\Common; use Piwik\Config; use Piwik\Container\StaticContainer; use Piwik\Archive\ArchiveInvalidator; diff --git a/plugins/CoreAdminHome/Commands/InvalidateReportData.php b/plugins/CoreAdminHome/Commands/InvalidateReportData.php index 93dde32d58..cdb1f3240e 100644 --- a/plugins/CoreAdminHome/Commands/InvalidateReportData.php +++ b/plugins/CoreAdminHome/Commands/InvalidateReportData.php @@ -20,12 +20,9 @@ use Piwik\Plugins\SitesManager\API as SitesManagerAPI; use Piwik\Site; use Piwik\Period\Factory as PeriodFactory; use Psr\Log\LoggerInterface; -use Symfony\Component\Console\Helper\QuestionHelper; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Question\ConfirmationQuestion; -use Symfony\Component\Console\Question\Question; /** * Provides a simple interface for invalidating report data by date ranges, site IDs and periods. diff --git a/plugins/CoreAdminHome/Commands/MigrateTokenAuths.php b/plugins/CoreAdminHome/Commands/MigrateTokenAuths.php index bcbb4fe5b4..4dec1a14a0 100644 --- a/plugins/CoreAdminHome/Commands/MigrateTokenAuths.php +++ b/plugins/CoreAdminHome/Commands/MigrateTokenAuths.php @@ -8,16 +8,12 @@ namespace Piwik\Plugins\CoreAdminHome\Commands; -use Piwik\Common; -use Piwik\Config; use Piwik\Container\StaticContainer; use Piwik\Date; -use Piwik\Db; use Piwik\Plugin\ConsoleCommand; use Piwik\Plugins\UsersManager\Model; use Piwik\Updater; use Piwik\Updater\Migration\Factory as MigrationFactory; -use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; diff --git a/plugins/CoreAdminHome/Commands/PurgeOldArchiveData.php b/plugins/CoreAdminHome/Commands/PurgeOldArchiveData.php index 4660fc5d9d..42736cc935 100644 --- a/plugins/CoreAdminHome/Commands/PurgeOldArchiveData.php +++ b/plugins/CoreAdminHome/Commands/PurgeOldArchiveData.php @@ -8,7 +8,6 @@ */ namespace Piwik\Plugins\CoreAdminHome\Commands; -use Piwik\Archive; use Piwik\Archive\ArchivePurger; use Piwik\DataAccess\ArchiveTableCreator; use Piwik\Date; diff --git a/plugins/CoreAdminHome/Tasks.php b/plugins/CoreAdminHome/Tasks.php index 803880b621..1188d102c7 100644 --- a/plugins/CoreAdminHome/Tasks.php +++ b/plugins/CoreAdminHome/Tasks.php @@ -9,11 +9,8 @@ namespace Piwik\Plugins\CoreAdminHome; use Piwik\API\Request; -use Piwik\Archive; -use Piwik\Archive\ArchiveInvalidator; use Piwik\ArchiveProcessor\Rules; use Piwik\Archive\ArchivePurger; -use Piwik\Common; use Piwik\Config; use Piwik\Container\StaticContainer; use Piwik\CronArchive; diff --git a/plugins/CoreAdminHome/tests/Framework/Mock/API.php b/plugins/CoreAdminHome/tests/Framework/Mock/API.php index 165abd4490..c07af44fc1 100644 --- a/plugins/CoreAdminHome/tests/Framework/Mock/API.php +++ b/plugins/CoreAdminHome/tests/Framework/Mock/API.php @@ -8,7 +8,6 @@ namespace Piwik\Plugins\CoreAdminHome\tests\Framework\Mock; -use Piwik\Tracker; class API extends \Piwik\Plugins\CoreAdminHome\API { diff --git a/plugins/CoreAdminHome/tests/Integration/Commands/InvalidateReportDataTest.php b/plugins/CoreAdminHome/tests/Integration/Commands/InvalidateReportDataTest.php index 630ce6c503..9684b8a5a8 100644 --- a/plugins/CoreAdminHome/tests/Integration/Commands/InvalidateReportDataTest.php +++ b/plugins/CoreAdminHome/tests/Integration/Commands/InvalidateReportDataTest.php @@ -9,11 +9,9 @@ namespace Piwik\Plugins\CoreAdminHome\tests\Integration\Commands; use Monolog\Handler\AbstractProcessingHandler; -use Piwik\ArchiveProcessor\Rules; use Piwik\Plugins\SegmentEditor\API; use Piwik\Tests\Framework\Fixture; use Piwik\Tests\Framework\TestCase\ConsoleCommandTestCase; -use Psr\Log\LoggerInterface; /** * @group CoreAdminHome diff --git a/plugins/CoreAdminHome/tests/Integration/Commands/SetConfigTest.php b/plugins/CoreAdminHome/tests/Integration/Commands/SetConfigTest.php index ef6dc6b37b..7e98a5152e 100644 --- a/plugins/CoreAdminHome/tests/Integration/Commands/SetConfigTest.php +++ b/plugins/CoreAdminHome/tests/Integration/Commands/SetConfigTest.php @@ -12,7 +12,6 @@ use Psr\Container\ContainerInterface; use Piwik\Application\Kernel\GlobalSettingsProvider; use Piwik\Config; use Piwik\Tests\Framework\TestCase\ConsoleCommandTestCase; -use Piwik\Url; /** * @group Core diff --git a/plugins/CoreAdminHome/tests/Integration/TasksTest.php b/plugins/CoreAdminHome/tests/Integration/TasksTest.php index 06765ef54d..9edcea8932 100644 --- a/plugins/CoreAdminHome/tests/Integration/TasksTest.php +++ b/plugins/CoreAdminHome/tests/Integration/TasksTest.php @@ -17,9 +17,6 @@ use Piwik\Plugins\CoreAdminHome\Emails\JsTrackingCodeMissingEmail; use Piwik\Plugins\CoreAdminHome\Emails\TrackingFailuresEmail; use Piwik\Plugins\CoreAdminHome\Tasks; use Piwik\Plugins\CoreAdminHome\Tasks\ArchivesToPurgeDistributedList; -use Piwik\Plugins\CustomDimensions\CustomDimensions; -use Piwik\Plugins\CustomDimensions\Dao\Configuration; -use Piwik\Plugins\SegmentEditor\Model; use Piwik\Scheduler\Task; use Piwik\Tests\Fixtures\RawArchiveDataWithTempAndInvalidated; use Piwik\Tests\Framework\Fixture; |