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/CoreHome | |
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/CoreHome')
-rw-r--r-- | plugins/CoreHome/Categories/VisitorsCategory.php | 1 | ||||
-rw-r--r-- | plugins/CoreHome/Columns/Metrics/ConversionRate.php | 1 | ||||
-rw-r--r-- | plugins/CoreHome/Columns/Metrics/VisitsPercent.php | 1 | ||||
-rw-r--r-- | plugins/CoreHome/Columns/UserId.php | 2 | ||||
-rw-r--r-- | plugins/CoreHome/Columns/VisitGoalBuyer.php | 1 | ||||
-rw-r--r-- | plugins/CoreHome/Columns/VisitTotalTime.php | 1 | ||||
-rw-r--r-- | plugins/CoreHome/Columns/VisitorId.php | 1 | ||||
-rw-r--r-- | plugins/CoreHome/Columns/VisitorSecondsSinceFirst.php | 1 | ||||
-rw-r--r-- | plugins/CoreHome/Columns/VisitorSecondsSinceOrder.php | 1 | ||||
-rw-r--r-- | plugins/CoreHome/Controller.php | 1 | ||||
-rw-r--r-- | plugins/CoreHome/Menu.php | 2 | ||||
-rw-r--r-- | plugins/CoreHome/Tracker/VisitRequestProcessor.php | 1 | ||||
-rw-r--r-- | plugins/CoreHome/Widgets/GetDonateForm.php | 1 | ||||
-rw-r--r-- | plugins/CoreHome/Widgets/GetSystemSummary.php | 1 | ||||
-rw-r--r-- | plugins/CoreHome/tests/Integration/Column/UserIdTest.php | 2 | ||||
-rw-r--r-- | plugins/CoreHome/tests/Integration/Column/VisitLastActionTimeTest.php | 9 | ||||
-rw-r--r-- | plugins/CoreHome/tests/Unit/EvolutionMetricTest.php | 1 |
17 files changed, 0 insertions, 28 deletions
diff --git a/plugins/CoreHome/Categories/VisitorsCategory.php b/plugins/CoreHome/Categories/VisitorsCategory.php index 8cbbbb9033..ad75ace57a 100644 --- a/plugins/CoreHome/Categories/VisitorsCategory.php +++ b/plugins/CoreHome/Categories/VisitorsCategory.php @@ -10,7 +10,6 @@ namespace Piwik\Plugins\CoreHome\Categories; use Piwik\Category\Category; use Piwik\Piwik; -use Piwik\Url; class VisitorsCategory extends Category { diff --git a/plugins/CoreHome/Columns/Metrics/ConversionRate.php b/plugins/CoreHome/Columns/Metrics/ConversionRate.php index 16dd7bba1b..31447dd729 100644 --- a/plugins/CoreHome/Columns/Metrics/ConversionRate.php +++ b/plugins/CoreHome/Columns/Metrics/ConversionRate.php @@ -8,7 +8,6 @@ namespace Piwik\Plugins\CoreHome\Columns\Metrics; use Piwik\DataTable\Row; -use Piwik\Metrics; use Piwik\Metrics\Formatter; use Piwik\Piwik; use Piwik\Plugin\ProcessedMetric; diff --git a/plugins/CoreHome/Columns/Metrics/VisitsPercent.php b/plugins/CoreHome/Columns/Metrics/VisitsPercent.php index 325e1e3e48..49f18a8aa6 100644 --- a/plugins/CoreHome/Columns/Metrics/VisitsPercent.php +++ b/plugins/CoreHome/Columns/Metrics/VisitsPercent.php @@ -13,7 +13,6 @@ use Piwik\DataTable\Row; use Piwik\Metrics\Formatter; use Piwik\Piwik; use Piwik\Plugin\ProcessedMetric; -use Piwik\Plugin\Report; /** * Percent of visits in the whole table. Calculated as: diff --git a/plugins/CoreHome/Columns/UserId.php b/plugins/CoreHome/Columns/UserId.php index db23f9b7f0..bc0c77ab74 100644 --- a/plugins/CoreHome/Columns/UserId.php +++ b/plugins/CoreHome/Columns/UserId.php @@ -9,13 +9,11 @@ namespace Piwik\Plugins\CoreHome\Columns; use Piwik\Cache; -use Piwik\Common; use Piwik\DataTable; use Piwik\DataTable\Map; use Piwik\Metrics; use Piwik\Plugin; use Piwik\Plugin\Dimension\VisitDimension; -use Piwik\Plugins\VisitsSummary\API as VisitsSummaryApi; use Piwik\Tracker\Request; use Piwik\Tracker\Visitor; use Piwik\Tracker\Action; diff --git a/plugins/CoreHome/Columns/VisitGoalBuyer.php b/plugins/CoreHome/Columns/VisitGoalBuyer.php index 904519494b..711380cf9a 100644 --- a/plugins/CoreHome/Columns/VisitGoalBuyer.php +++ b/plugins/CoreHome/Columns/VisitGoalBuyer.php @@ -11,7 +11,6 @@ namespace Piwik\Plugins\CoreHome\Columns; use Piwik\Metrics\Formatter; use Piwik\Piwik; use Piwik\Plugin\Dimension\VisitDimension; -use Piwik\Plugins\CoreHome\Segment; use Piwik\Tracker\Action; use Piwik\Tracker\GoalManager; use Piwik\Tracker\Request; diff --git a/plugins/CoreHome/Columns/VisitTotalTime.php b/plugins/CoreHome/Columns/VisitTotalTime.php index 858028f598..0401a54e04 100644 --- a/plugins/CoreHome/Columns/VisitTotalTime.php +++ b/plugins/CoreHome/Columns/VisitTotalTime.php @@ -10,7 +10,6 @@ namespace Piwik\Plugins\CoreHome\Columns; use Piwik\Config; use Piwik\Plugin\Dimension\VisitDimension; -use Piwik\Plugins\CoreHome\Segment; use Piwik\Tracker\Action; use Piwik\Tracker\Request; use Piwik\Tracker\Visitor; diff --git a/plugins/CoreHome/Columns/VisitorId.php b/plugins/CoreHome/Columns/VisitorId.php index f6b29699b3..108c41b921 100644 --- a/plugins/CoreHome/Columns/VisitorId.php +++ b/plugins/CoreHome/Columns/VisitorId.php @@ -10,7 +10,6 @@ namespace Piwik\Plugins\CoreHome\Columns; use Piwik\Columns\DimensionMetricFactory; use Piwik\Columns\MetricsList; -use Piwik\Metrics\Formatter; use Piwik\Piwik; use Piwik\Plugin\ArchivedMetric; use Piwik\Plugin\Dimension\VisitDimension; diff --git a/plugins/CoreHome/Columns/VisitorSecondsSinceFirst.php b/plugins/CoreHome/Columns/VisitorSecondsSinceFirst.php index bed71d3328..64e2a3403a 100644 --- a/plugins/CoreHome/Columns/VisitorSecondsSinceFirst.php +++ b/plugins/CoreHome/Columns/VisitorSecondsSinceFirst.php @@ -11,7 +11,6 @@ namespace Piwik\Plugins\CoreHome\Columns; use Piwik\Common; use Piwik\Date; use Piwik\Plugin\Dimension\VisitDimension; -use Piwik\Plugin\Segment; use Piwik\Tracker\Action; use Piwik\Tracker\Request; use Piwik\Tracker\Visitor; diff --git a/plugins/CoreHome/Columns/VisitorSecondsSinceOrder.php b/plugins/CoreHome/Columns/VisitorSecondsSinceOrder.php index 8837bfdd7b..0e67fe4184 100644 --- a/plugins/CoreHome/Columns/VisitorSecondsSinceOrder.php +++ b/plugins/CoreHome/Columns/VisitorSecondsSinceOrder.php @@ -10,7 +10,6 @@ namespace Piwik\Plugins\CoreHome\Columns; use Piwik\Date; use Piwik\Plugin\Dimension\VisitDimension; -use Piwik\Plugin\Segment; use Piwik\Tracker\Action; use Piwik\Tracker\Request; use Piwik\Tracker\Visitor; diff --git a/plugins/CoreHome/Controller.php b/plugins/CoreHome/Controller.php index ad1096e1e5..6982562ea6 100644 --- a/plugins/CoreHome/Controller.php +++ b/plugins/CoreHome/Controller.php @@ -24,7 +24,6 @@ use Piwik\Plugins\CoreHome\DataTableRowAction\MultiRowEvolution; use Piwik\Plugins\CoreHome\DataTableRowAction\RowEvolution; use Piwik\Plugins\Dashboard\DashboardManagerControl; use Piwik\Plugins\UsersManager\API; -use Piwik\Site; use Piwik\Translation\Translator; use Piwik\UpdateCheck; use Piwik\Url; diff --git a/plugins/CoreHome/Menu.php b/plugins/CoreHome/Menu.php index 3b3051f606..6cade0124e 100644 --- a/plugins/CoreHome/Menu.php +++ b/plugins/CoreHome/Menu.php @@ -8,10 +8,8 @@ */ namespace Piwik\Plugins\CoreHome; -use Piwik\Db; use Piwik\Menu\MenuTop; use Piwik\Piwik; -use Piwik\Plugin; class Menu extends \Piwik\Plugin\Menu { diff --git a/plugins/CoreHome/Tracker/VisitRequestProcessor.php b/plugins/CoreHome/Tracker/VisitRequestProcessor.php index 65906cd45e..74abe8ffd6 100644 --- a/plugins/CoreHome/Tracker/VisitRequestProcessor.php +++ b/plugins/CoreHome/Tracker/VisitRequestProcessor.php @@ -10,7 +10,6 @@ namespace Piwik\Plugins\CoreHome\Tracker; use Piwik\Common; use Piwik\Date; -use Piwik\Config; use Piwik\EventDispatcher; use Piwik\Exception\UnexpectedWebsiteFoundException; use Piwik\Tracker\Cache; diff --git a/plugins/CoreHome/Widgets/GetDonateForm.php b/plugins/CoreHome/Widgets/GetDonateForm.php index 72431e2d7f..c5ea5cf462 100644 --- a/plugins/CoreHome/Widgets/GetDonateForm.php +++ b/plugins/CoreHome/Widgets/GetDonateForm.php @@ -13,7 +13,6 @@ use Piwik\Piwik; use Piwik\Widget\Widget; use Piwik\Widget\WidgetConfig; use Piwik\Translation\Translator; -use Piwik\View; class GetDonateForm extends Widget { diff --git a/plugins/CoreHome/Widgets/GetSystemSummary.php b/plugins/CoreHome/Widgets/GetSystemSummary.php index 362fc6817c..e09fe22d45 100644 --- a/plugins/CoreHome/Widgets/GetSystemSummary.php +++ b/plugins/CoreHome/Widgets/GetSystemSummary.php @@ -8,7 +8,6 @@ */ namespace Piwik\Plugins\CoreHome\Widgets; -use Piwik\API\Request; use Piwik\Db; use Piwik\Piwik; use Piwik\Plugin; diff --git a/plugins/CoreHome/tests/Integration/Column/UserIdTest.php b/plugins/CoreHome/tests/Integration/Column/UserIdTest.php index 848d933f5a..da1fd47ee9 100644 --- a/plugins/CoreHome/tests/Integration/Column/UserIdTest.php +++ b/plugins/CoreHome/tests/Integration/Column/UserIdTest.php @@ -9,8 +9,6 @@ namespace Piwik\Plugins\CoreHome\tests\Integration\Column; use Piwik\Cache; -use Piwik\DataAccess\ArchiveTableCreator; -use Piwik\Db; use Piwik\Metrics; use Piwik\Plugins\CoreHome\Columns\UserId; use Piwik\Tests\Framework\Fixture; diff --git a/plugins/CoreHome/tests/Integration/Column/VisitLastActionTimeTest.php b/plugins/CoreHome/tests/Integration/Column/VisitLastActionTimeTest.php index acbf850dde..f0fc25024c 100644 --- a/plugins/CoreHome/tests/Integration/Column/VisitLastActionTimeTest.php +++ b/plugins/CoreHome/tests/Integration/Column/VisitLastActionTimeTest.php @@ -8,23 +8,14 @@ namespace Piwik\Plugins\CoreHome\tests\Integration\Column; -use Piwik\Cache; use Piwik\Common; -use Piwik\DataAccess\ArchiveTableCreator; use Piwik\Date; -use Piwik\Db; -use Piwik\Metrics; -use Piwik\Plugins\CoreHome\Columns\UserId; use Piwik\Plugins\CoreHome\Columns\VisitLastActionTime; -use Piwik\Plugins\CoreHome\Tracker\LogTable\Visit; use Piwik\Tests\Framework\Fixture; -use Piwik\Tests\Framework\Mock\FakeAccess; use Piwik\Tests\Framework\TestCase\IntegrationTestCase; -use Piwik\DataTable; use Piwik\Tracker\Request; use Piwik\Tracker\Visit\VisitProperties; use Piwik\Tracker\Visitor; -use Piwik\Tracker\VisitorRecognizer; /** * @group CoreHome diff --git a/plugins/CoreHome/tests/Unit/EvolutionMetricTest.php b/plugins/CoreHome/tests/Unit/EvolutionMetricTest.php index 7ecdb2d046..7929eba0e4 100644 --- a/plugins/CoreHome/tests/Unit/EvolutionMetricTest.php +++ b/plugins/CoreHome/tests/Unit/EvolutionMetricTest.php @@ -11,7 +11,6 @@ namespace Piwik\Plugins\CoreHome\tests\Unit; use PHPUnit\Framework\TestCase; use Piwik\DataTable; -use Piwik\Archive\DataCollection; use Piwik\DataTable\Row; use Piwik\Date; use Piwik\Plugins\CoreHome\Columns\Metrics\EvolutionMetric; |