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/DevicesDetection | |
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/DevicesDetection')
-rw-r--r-- | plugins/DevicesDetection/Columns/BrowserName.php | 1 | ||||
-rw-r--r-- | plugins/DevicesDetection/Columns/DeviceModel.php | 1 | ||||
-rw-r--r-- | plugins/DevicesDetection/Columns/DeviceType.php | 1 | ||||
-rw-r--r-- | plugins/DevicesDetection/Columns/Os.php | 1 | ||||
-rw-r--r-- | plugins/DevicesDetection/Controller.php | 2 | ||||
-rw-r--r-- | plugins/DevicesDetection/Reports/Base.php | 1 | ||||
-rw-r--r-- | plugins/DevicesDetection/Reports/GetType.php | 1 | ||||
-rw-r--r-- | plugins/DevicesDetection/Updates/1.14.php | 1 |
8 files changed, 0 insertions, 9 deletions
diff --git a/plugins/DevicesDetection/Columns/BrowserName.php b/plugins/DevicesDetection/Columns/BrowserName.php index 6e2f2ae49b..69ff56a235 100644 --- a/plugins/DevicesDetection/Columns/BrowserName.php +++ b/plugins/DevicesDetection/Columns/BrowserName.php @@ -10,7 +10,6 @@ namespace Piwik\Plugins\DevicesDetection\Columns; use DeviceDetector\Parser\Client\Browser; use Piwik\Columns\DimensionSegmentFactory; -use Piwik\Common; use Piwik\Metrics\Formatter; use Piwik\Plugin\Segment; use Piwik\Segment\SegmentsList; diff --git a/plugins/DevicesDetection/Columns/DeviceModel.php b/plugins/DevicesDetection/Columns/DeviceModel.php index 54b3ab52f3..98f2c9fb18 100644 --- a/plugins/DevicesDetection/Columns/DeviceModel.php +++ b/plugins/DevicesDetection/Columns/DeviceModel.php @@ -8,7 +8,6 @@ */ namespace Piwik\Plugins\DevicesDetection\Columns; -use Piwik\Piwik; use Piwik\Tracker\Request; use Piwik\Tracker\Visitor; use Piwik\Tracker\Action; diff --git a/plugins/DevicesDetection/Columns/DeviceType.php b/plugins/DevicesDetection/Columns/DeviceType.php index 30cdb476ba..a59974368d 100644 --- a/plugins/DevicesDetection/Columns/DeviceType.php +++ b/plugins/DevicesDetection/Columns/DeviceType.php @@ -10,7 +10,6 @@ namespace Piwik\Plugins\DevicesDetection\Columns; use Piwik\Metrics\Formatter; use Piwik\Tracker\Request; -use Exception; use Piwik\Tracker\Visitor; use Piwik\Tracker\Action; use DeviceDetector\Parser\Device\AbstractDeviceParser as DeviceParser; diff --git a/plugins/DevicesDetection/Columns/Os.php b/plugins/DevicesDetection/Columns/Os.php index 4e5bf84418..63ed9c342e 100644 --- a/plugins/DevicesDetection/Columns/Os.php +++ b/plugins/DevicesDetection/Columns/Os.php @@ -10,7 +10,6 @@ namespace Piwik\Plugins\DevicesDetection\Columns; use DeviceDetector\Parser\OperatingSystem; use Piwik\Columns\DimensionSegmentFactory; -use Piwik\Common; use Piwik\Metrics\Formatter; use Piwik\Piwik; use Piwik\Plugin\Segment; diff --git a/plugins/DevicesDetection/Controller.php b/plugins/DevicesDetection/Controller.php index de5424908e..d74ba9d527 100644 --- a/plugins/DevicesDetection/Controller.php +++ b/plugins/DevicesDetection/Controller.php @@ -10,10 +10,8 @@ namespace Piwik\Plugins\DevicesDetection; use DeviceDetector\DeviceDetector; use Piwik\Common; -use Piwik\Db; use Piwik\Piwik; use Piwik\Plugin\ControllerAdmin; -use Piwik\Plugin\Report; use Piwik\View; class Controller extends \Piwik\Plugin\Controller diff --git a/plugins/DevicesDetection/Reports/Base.php b/plugins/DevicesDetection/Reports/Base.php index 482d6ba3ed..3f773c6a9d 100644 --- a/plugins/DevicesDetection/Reports/Base.php +++ b/plugins/DevicesDetection/Reports/Base.php @@ -8,7 +8,6 @@ */ namespace Piwik\Plugins\DevicesDetection\Reports; -use Piwik\Metrics; abstract class Base extends \Piwik\Plugin\Report { diff --git a/plugins/DevicesDetection/Reports/GetType.php b/plugins/DevicesDetection/Reports/GetType.php index 6ebb6b4b11..ad0dbac319 100644 --- a/plugins/DevicesDetection/Reports/GetType.php +++ b/plugins/DevicesDetection/Reports/GetType.php @@ -8,7 +8,6 @@ */ namespace Piwik\Plugins\DevicesDetection\Reports; -use Piwik\Common; use Piwik\Piwik; use Piwik\Plugin\ViewDataTable; use Piwik\Plugins\DevicesDetection\Columns\DeviceType; diff --git a/plugins/DevicesDetection/Updates/1.14.php b/plugins/DevicesDetection/Updates/1.14.php index 092f7166f9..d1bf31dcec 100644 --- a/plugins/DevicesDetection/Updates/1.14.php +++ b/plugins/DevicesDetection/Updates/1.14.php @@ -9,7 +9,6 @@ namespace Piwik\Plugins\DevicesDetection; -use Piwik\Common; use Piwik\Updater; use Piwik\Updates; use Piwik\Updater\Migration\Factory as MigrationFactory; |