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/ExamplePlugin | |
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/ExamplePlugin')
-rw-r--r-- | plugins/ExamplePlugin/API.php | 1 | ||||
-rw-r--r-- | plugins/ExamplePlugin/Archiver.php | 2 | ||||
-rw-r--r-- | plugins/ExamplePlugin/Controller.php | 1 | ||||
-rw-r--r-- | plugins/ExamplePlugin/Widgets/MyExampleWidget.php | 1 |
4 files changed, 0 insertions, 5 deletions
diff --git a/plugins/ExamplePlugin/API.php b/plugins/ExamplePlugin/API.php index a99c45788e..6115273033 100644 --- a/plugins/ExamplePlugin/API.php +++ b/plugins/ExamplePlugin/API.php @@ -10,7 +10,6 @@ namespace Piwik\Plugins\ExamplePlugin; use Piwik\Archive; use Piwik\DataTable; -use Piwik\DataTable\Row; use Piwik\Piwik; use Piwik\Segment; diff --git a/plugins/ExamplePlugin/Archiver.php b/plugins/ExamplePlugin/Archiver.php index b9b9bc4ab1..8f3f453f99 100644 --- a/plugins/ExamplePlugin/Archiver.php +++ b/plugins/ExamplePlugin/Archiver.php @@ -9,11 +9,9 @@ namespace Piwik\Plugins\ExamplePlugin; use Piwik\ArchiveProcessor; -use Piwik\Container\StaticContainer; use Piwik\Date; use Piwik\Option; use Piwik\Sequence; -use Psr\Log\LoggerInterface; /** * Class Archiver diff --git a/plugins/ExamplePlugin/Controller.php b/plugins/ExamplePlugin/Controller.php index 4b8dac40e6..34a80861d4 100644 --- a/plugins/ExamplePlugin/Controller.php +++ b/plugins/ExamplePlugin/Controller.php @@ -8,7 +8,6 @@ namespace Piwik\Plugins\ExamplePlugin; -use Piwik\View; /** * A controller lets you for example create a page that can be added to a menu. For more information read our guide diff --git a/plugins/ExamplePlugin/Widgets/MyExampleWidget.php b/plugins/ExamplePlugin/Widgets/MyExampleWidget.php index c9b70b8187..47593df280 100644 --- a/plugins/ExamplePlugin/Widgets/MyExampleWidget.php +++ b/plugins/ExamplePlugin/Widgets/MyExampleWidget.php @@ -10,7 +10,6 @@ namespace Piwik\Plugins\ExamplePlugin\Widgets; use Piwik\Widget\Widget; use Piwik\Widget\WidgetConfig; -use Piwik\View; /** * This class allows you to add your own widget to the Piwik platform. In case you want to remove widgets from another |