Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2022-03-10 23:08:31 +0300
committerGitHub <noreply@github.com>2022-03-10 23:08:31 +0300
commitc11469e4199405628e97650914f0cdbdea94dac7 (patch)
treeaf07edd44b6ac95fa3cd6e439d435cf6c55e9ad5 /plugins/Goals
parent05082abdca8909cf27137773f129cf66f495922b (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/Goals')
-rw-r--r--plugins/Goals/Columns/DaysToConversion.php1
-rw-r--r--plugins/Goals/Columns/VisitsUntilConversion.php1
-rw-r--r--plugins/Goals/Controller.php2
-rw-r--r--plugins/Goals/Conversions.php3
-rw-r--r--plugins/Goals/DataTable/Filter/AppendNameToColumnNames.php1
-rw-r--r--plugins/Goals/Reports/Base.php2
-rw-r--r--plugins/Goals/Reports/Get.php2
-rw-r--r--plugins/Goals/Updates/3.0.0-b1.php1
-rw-r--r--plugins/Goals/Visualizations/Goals.php4
-rw-r--r--plugins/Goals/Widgets/AddNewGoal.php2
-rw-r--r--plugins/Goals/Widgets/EditGoals.php2
-rw-r--r--plugins/Goals/tests/Integration/APITest.php1
12 files changed, 0 insertions, 22 deletions
diff --git a/plugins/Goals/Columns/DaysToConversion.php b/plugins/Goals/Columns/DaysToConversion.php
index 9be44fcd11..64f2228aac 100644
--- a/plugins/Goals/Columns/DaysToConversion.php
+++ b/plugins/Goals/Columns/DaysToConversion.php
@@ -9,7 +9,6 @@
namespace Piwik\Plugins\Goals\Columns;
use Piwik\Columns\Dimension;
-use Piwik\Piwik;
class DaysToConversion extends Dimension
{
diff --git a/plugins/Goals/Columns/VisitsUntilConversion.php b/plugins/Goals/Columns/VisitsUntilConversion.php
index e1c883c305..2fbdbd911c 100644
--- a/plugins/Goals/Columns/VisitsUntilConversion.php
+++ b/plugins/Goals/Columns/VisitsUntilConversion.php
@@ -9,7 +9,6 @@
namespace Piwik\Plugins\Goals\Columns;
use Piwik\Columns\Dimension;
-use Piwik\Piwik;
class VisitsUntilConversion extends Dimension
{
diff --git a/plugins/Goals/Controller.php b/plugins/Goals/Controller.php
index fd7ddc109a..79b8b34dd3 100644
--- a/plugins/Goals/Controller.php
+++ b/plugins/Goals/Controller.php
@@ -8,7 +8,6 @@
*/
namespace Piwik\Plugins\Goals;
-use Piwik\API\Proxy;
use Piwik\API\Request;
use Piwik\Common;
use Piwik\DataTable;
@@ -17,7 +16,6 @@ use Piwik\DataTable\Filter\AddColumnsProcessedMetricsGoal;
use Piwik\FrontController;
use Piwik\Piwik;
use Piwik\Plugin\Manager;
-use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\Sparklines;
use Piwik\Plugins\Live\Live;
use Piwik\Plugins\Referrers\API as APIReferrers;
diff --git a/plugins/Goals/Conversions.php b/plugins/Goals/Conversions.php
index 27c8352b11..a954174863 100644
--- a/plugins/Goals/Conversions.php
+++ b/plugins/Goals/Conversions.php
@@ -9,9 +9,6 @@
namespace Piwik\Plugins\Goals;
use Piwik\API\Request;
-use Piwik\Cache;
-use Piwik\Common;
-use Piwik\Db;
class Conversions
{
diff --git a/plugins/Goals/DataTable/Filter/AppendNameToColumnNames.php b/plugins/Goals/DataTable/Filter/AppendNameToColumnNames.php
index ae2c1669c7..83b9317429 100644
--- a/plugins/Goals/DataTable/Filter/AppendNameToColumnNames.php
+++ b/plugins/Goals/DataTable/Filter/AppendNameToColumnNames.php
@@ -10,7 +10,6 @@ namespace Piwik\Plugins\Goals\DataTable\Filter;
use Piwik\DataTable\BaseFilter;
use Piwik\DataTable;
-use Piwik\Metrics;
/**
* Appends a string to each column name in each row of a table. Please note this filter even appends the name to a
diff --git a/plugins/Goals/Reports/Base.php b/plugins/Goals/Reports/Base.php
index 969b4f64c4..24e6ecc725 100644
--- a/plugins/Goals/Reports/Base.php
+++ b/plugins/Goals/Reports/Base.php
@@ -11,8 +11,6 @@ namespace Piwik\Plugins\Goals\Reports;
use Piwik\API\Request;
use Piwik\Common;
use Piwik\Piwik;
-use Piwik\Plugins\Goals\API;
-use Piwik\Plugins\Goals\Goals;
abstract class Base extends \Piwik\Plugin\Report
{
diff --git a/plugins/Goals/Reports/Get.php b/plugins/Goals/Reports/Get.php
index 201eeae186..5d0f3b1411 100644
--- a/plugins/Goals/Reports/Get.php
+++ b/plugins/Goals/Reports/Get.php
@@ -11,14 +11,12 @@ namespace Piwik\Plugins\Goals\Reports;
use Piwik\API\Request;
use Piwik\Common;
use Piwik\DataTable;
-use Piwik\Metrics\Formatter;
use Piwik\NumberFormatter;
use Piwik\Piwik;
use Piwik\Plugin;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Evolution;
use Piwik\Plugins\CoreVisualizations\Visualizations\Sparklines;
-use Piwik\Plugins\Goals\API;
use Piwik\Plugins\Goals\Goals;
use Piwik\Plugins\Goals\Pages;
use Piwik\Report\ReportWidgetFactory;
diff --git a/plugins/Goals/Updates/3.0.0-b1.php b/plugins/Goals/Updates/3.0.0-b1.php
index 42c7d32ad9..55d2fbb626 100644
--- a/plugins/Goals/Updates/3.0.0-b1.php
+++ b/plugins/Goals/Updates/3.0.0-b1.php
@@ -9,7 +9,6 @@
namespace Piwik\Plugins\Goals;
-use Piwik\Common;
use Piwik\Updater;
use Piwik\Updates;
use Piwik\Updater\Migration\Factory as MigrationFactory;
diff --git a/plugins/Goals/Visualizations/Goals.php b/plugins/Goals/Visualizations/Goals.php
index 0463bde48d..02bc042f5a 100644
--- a/plugins/Goals/Visualizations/Goals.php
+++ b/plugins/Goals/Visualizations/Goals.php
@@ -8,16 +8,12 @@
namespace Piwik\Plugins\Goals\Visualizations;
-use Piwik\API\DataTablePostProcessor;
use Piwik\API\Request;
use Piwik\Common;
-use Piwik\DataTable;
use Piwik\DataTable\Filter\AddColumnsProcessedMetricsGoal;
use Piwik\Piwik;
use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
-use Piwik\Plugins\Goals\API as APIGoals;
use Piwik\Site;
-use Piwik\View;
require_once PIWIK_INCLUDE_PATH . '/core/Twig.php';
diff --git a/plugins/Goals/Widgets/AddNewGoal.php b/plugins/Goals/Widgets/AddNewGoal.php
index 65245b63d4..d84cce1240 100644
--- a/plugins/Goals/Widgets/AddNewGoal.php
+++ b/plugins/Goals/Widgets/AddNewGoal.php
@@ -10,8 +10,6 @@ namespace Piwik\Plugins\Goals\Widgets;
use Piwik\API\Request;
use Piwik\Common;
-use Piwik\Piwik;
-use Piwik\Plugins\Goals\API;
use Piwik\Widget\WidgetConfig;
class AddNewGoal extends \Piwik\Widget\Widget
diff --git a/plugins/Goals/Widgets/EditGoals.php b/plugins/Goals/Widgets/EditGoals.php
index a3f892cd1e..10fcc5dbdb 100644
--- a/plugins/Goals/Widgets/EditGoals.php
+++ b/plugins/Goals/Widgets/EditGoals.php
@@ -10,8 +10,6 @@ namespace Piwik\Plugins\Goals\Widgets;
use Piwik\API\Request;
use Piwik\Common;
-use Piwik\Piwik;
-use Piwik\Plugins\Goals\API;
use Piwik\Widget\WidgetConfig;
class EditGoals extends \Piwik\Widget\Widget
diff --git a/plugins/Goals/tests/Integration/APITest.php b/plugins/Goals/tests/Integration/APITest.php
index 478dadaad6..0f6ea4a94f 100644
--- a/plugins/Goals/tests/Integration/APITest.php
+++ b/plugins/Goals/tests/Integration/APITest.php
@@ -8,7 +8,6 @@
namespace Piwik\Plugins\Goals\tests\Integration;
-use Piwik\Piwik;
use Piwik\Plugins\Goals\API;
use Piwik\Tests\Framework\Fixture;
use Piwik\Tests\Framework\Mock\FakeAccess;