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/CoreVisualizations | |
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/CoreVisualizations')
12 files changed, 0 insertions, 18 deletions
diff --git a/plugins/CoreVisualizations/JqplotDataGenerator.php b/plugins/CoreVisualizations/JqplotDataGenerator.php index e73e66a25f..320a1b0aa1 100644 --- a/plugins/CoreVisualizations/JqplotDataGenerator.php +++ b/plugins/CoreVisualizations/JqplotDataGenerator.php @@ -15,9 +15,6 @@ use Piwik\Common; use Piwik\DataTable; use Piwik\DataTable\Row; use Piwik\Metrics; -use Piwik\Period\Factory; -use Piwik\Piwik; -use Piwik\Plugins\API\Filter\DataComparisonFilter; use Piwik\Plugins\CoreVisualizations\JqplotDataGenerator\Chart; use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph; diff --git a/plugins/CoreVisualizations/JqplotDataGenerator/Evolution.php b/plugins/CoreVisualizations/JqplotDataGenerator/Evolution.php index 52dd29ae51..ea71ab47be 100644 --- a/plugins/CoreVisualizations/JqplotDataGenerator/Evolution.php +++ b/plugins/CoreVisualizations/JqplotDataGenerator/Evolution.php @@ -11,8 +11,6 @@ namespace Piwik\Plugins\CoreVisualizations\JqplotDataGenerator; use Piwik\Archive\DataTableFactory; use Piwik\Common; use Piwik\DataTable; -use Piwik\DataTable\DataTableInterface; -use Piwik\DataTable\Row; use Piwik\Date; use Piwik\Metrics; use Piwik\Period; diff --git a/plugins/CoreVisualizations/Visualizations/Cloud.php b/plugins/CoreVisualizations/Visualizations/Cloud.php index 43ae5505f2..eb42ae0b63 100644 --- a/plugins/CoreVisualizations/Visualizations/Cloud.php +++ b/plugins/CoreVisualizations/Visualizations/Cloud.php @@ -9,9 +9,7 @@ namespace Piwik\Plugins\CoreVisualizations\Visualizations; use Piwik\Common; -use Piwik\DataTable; use Piwik\Plugin\Visualization; -use Piwik\View; /** * Generates a tag cloud from a given data array. diff --git a/plugins/CoreVisualizations/Visualizations/Graph.php b/plugins/CoreVisualizations/Visualizations/Graph.php index 8c296ffc50..296ea624a8 100644 --- a/plugins/CoreVisualizations/Visualizations/Graph.php +++ b/plugins/CoreVisualizations/Visualizations/Graph.php @@ -10,7 +10,6 @@ namespace Piwik\Plugins\CoreVisualizations\Visualizations; use Piwik\Common; use Piwik\DataTable; -use Piwik\DataTable\Row; use Piwik\Plugin\Metric; use Piwik\Plugins\AbTesting\Columns\Metrics\ProcessedMetric; use Piwik\Plugins\CoreVisualizations\Metrics\Formatter\Numeric; diff --git a/plugins/CoreVisualizations/Visualizations/HtmlTable/AllColumns.php b/plugins/CoreVisualizations/Visualizations/HtmlTable/AllColumns.php index 4c0ca2380c..5f655655c5 100644 --- a/plugins/CoreVisualizations/Visualizations/HtmlTable/AllColumns.php +++ b/plugins/CoreVisualizations/Visualizations/HtmlTable/AllColumns.php @@ -10,9 +10,7 @@ namespace Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable; use Piwik\DataTable; -use Piwik\Metrics; use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable; -use Piwik\View; /** * DataTable Visualization that derives from HtmlTable and sets show_extra_columns to true. diff --git a/plugins/CoreVisualizations/Visualizations/HtmlTable/Config.php b/plugins/CoreVisualizations/Visualizations/HtmlTable/Config.php index c69e00eb07..506af603a5 100644 --- a/plugins/CoreVisualizations/Visualizations/HtmlTable/Config.php +++ b/plugins/CoreVisualizations/Visualizations/HtmlTable/Config.php @@ -9,7 +9,6 @@ namespace Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable; -use Piwik\Columns\Dimension; use Piwik\ViewDataTable\Config as VisualizationConfig; /** diff --git a/plugins/CoreVisualizations/Visualizations/JqplotGraph.php b/plugins/CoreVisualizations/Visualizations/JqplotGraph.php index 1ff6dea20e..8f5799f91d 100644 --- a/plugins/CoreVisualizations/Visualizations/JqplotGraph.php +++ b/plugins/CoreVisualizations/Visualizations/JqplotGraph.php @@ -8,9 +8,7 @@ */ namespace Piwik\Plugins\CoreVisualizations\Visualizations; -use Piwik\DataTable; use Piwik\Plugins\CoreVisualizations\JqplotDataGenerator; -use Piwik\View; /** * DataTable visualization that displays DataTable data in a JQPlot graph. diff --git a/plugins/CoreVisualizations/Visualizations/JqplotGraph/Evolution.php b/plugins/CoreVisualizations/Visualizations/JqplotGraph/Evolution.php index 770a144007..d56a07280c 100644 --- a/plugins/CoreVisualizations/Visualizations/JqplotGraph/Evolution.php +++ b/plugins/CoreVisualizations/Visualizations/JqplotGraph/Evolution.php @@ -11,7 +11,6 @@ namespace Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph; use Piwik\API\Request as ApiRequest; use Piwik\Common; -use Piwik\DataTable; use Piwik\Period; use Piwik\Period\Factory; use Piwik\Period\Range; diff --git a/plugins/CoreVisualizations/Visualizations/Sparkline.php b/plugins/CoreVisualizations/Visualizations/Sparkline.php index 0a05b07be8..828504b4f3 100644 --- a/plugins/CoreVisualizations/Visualizations/Sparkline.php +++ b/plugins/CoreVisualizations/Visualizations/Sparkline.php @@ -13,7 +13,6 @@ use Piwik\Common; use Piwik\DataTable; use Piwik\Period; use Piwik\Plugin\ViewDataTable; -use Piwik\Site; /** * Reads the requested DataTable from the API and prepare data for the Sparkline view. diff --git a/plugins/CoreVisualizations/Visualizations/Sparklines.php b/plugins/CoreVisualizations/Visualizations/Sparklines.php index 4a2b4a69ee..c8fe429659 100644 --- a/plugins/CoreVisualizations/Visualizations/Sparklines.php +++ b/plugins/CoreVisualizations/Visualizations/Sparklines.php @@ -16,7 +16,6 @@ use Piwik\Period\Factory; use Piwik\Plugin\ViewDataTable; use Piwik\Plugins\API\Filter\DataComparisonFilter; use Piwik\SettingsPiwik; -use Piwik\Url; use Piwik\View; /** diff --git a/plugins/CoreVisualizations/Visualizations/Sparklines/Config.php b/plugins/CoreVisualizations/Visualizations/Sparklines/Config.php index 45e74134d9..1fdda31c77 100644 --- a/plugins/CoreVisualizations/Visualizations/Sparklines/Config.php +++ b/plugins/CoreVisualizations/Visualizations/Sparklines/Config.php @@ -12,7 +12,6 @@ use Piwik\Common; use Piwik\DataTable\Filter\CalculateEvolutionFilter; use Piwik\Metrics; use Piwik\NoAccessException; -use Piwik\Period\Factory; use Piwik\Period\Range; use Piwik\Site; use Piwik\Url; diff --git a/plugins/CoreVisualizations/Widgets/SingleMetricView.php b/plugins/CoreVisualizations/Widgets/SingleMetricView.php index 74f05455ea..f2994bbbb6 100644 --- a/plugins/CoreVisualizations/Widgets/SingleMetricView.php +++ b/plugins/CoreVisualizations/Widgets/SingleMetricView.php @@ -14,7 +14,6 @@ use Piwik\Common; use Piwik\View; use Piwik\Widget\WidgetConfig; use Piwik\Plugin\Manager as PluginManager; -use Piwik\Plugins\Goals\API as GoalsAPI; class SingleMetricView extends \Piwik\Widget\Widget { |