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/TwoFactorAuth | |
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/TwoFactorAuth')
8 files changed, 0 insertions, 11 deletions
diff --git a/plugins/TwoFactorAuth/Controller.php b/plugins/TwoFactorAuth/Controller.php index 3ff82ac44c..ebf85de377 100644 --- a/plugins/TwoFactorAuth/Controller.php +++ b/plugins/TwoFactorAuth/Controller.php @@ -7,8 +7,6 @@ */ namespace Piwik\Plugins\TwoFactorAuth; -use Endroid\QrCode\QrCode; -use Piwik\API\Request; use Piwik\Common; use Piwik\Container\StaticContainer; use Piwik\IP; diff --git a/plugins/TwoFactorAuth/SystemSettings.php b/plugins/TwoFactorAuth/SystemSettings.php index 1fd6619ee9..8e2060a967 100644 --- a/plugins/TwoFactorAuth/SystemSettings.php +++ b/plugins/TwoFactorAuth/SystemSettings.php @@ -14,7 +14,6 @@ use Piwik\Settings\Setting; use Piwik\Settings\FieldConfig; use Piwik\Url; use Piwik\Plugins\TwoFactorAuth\TwoFactorAuthentication; -use Piwik\Container\StaticContainer; class SystemSettings extends \Piwik\Settings\Plugin\SystemSettings { diff --git a/plugins/TwoFactorAuth/tests/Fixtures/SimpleFixtureTrackFewVisits.php b/plugins/TwoFactorAuth/tests/Fixtures/SimpleFixtureTrackFewVisits.php index 46b7ec2844..605d098351 100644 --- a/plugins/TwoFactorAuth/tests/Fixtures/SimpleFixtureTrackFewVisits.php +++ b/plugins/TwoFactorAuth/tests/Fixtures/SimpleFixtureTrackFewVisits.php @@ -7,7 +7,6 @@ */ namespace Piwik\Plugins\TwoFactorAuth\tests\Fixtures; -use Piwik\Date; use Piwik\Tests\Framework\Fixture; /** diff --git a/plugins/TwoFactorAuth/tests/Integration/Dao/RecoveryCodeRandomGeneratorTest.php b/plugins/TwoFactorAuth/tests/Integration/Dao/RecoveryCodeRandomGeneratorTest.php index d47292d09c..959ca78ac6 100644 --- a/plugins/TwoFactorAuth/tests/Integration/Dao/RecoveryCodeRandomGeneratorTest.php +++ b/plugins/TwoFactorAuth/tests/Integration/Dao/RecoveryCodeRandomGeneratorTest.php @@ -8,7 +8,6 @@ namespace Piwik\Plugins\TwoFactorAuth\tests\Integration\Dao; -use Piwik\Common; use Piwik\Plugins\TwoFactorAuth\Dao\RecoveryCodeRandomGenerator; use Piwik\Tests\Framework\TestCase\IntegrationTestCase; diff --git a/plugins/TwoFactorAuth/tests/Integration/Dao/RecoveryCodeStaticGeneratorTest.php b/plugins/TwoFactorAuth/tests/Integration/Dao/RecoveryCodeStaticGeneratorTest.php index a5668ebb17..753f7099f1 100644 --- a/plugins/TwoFactorAuth/tests/Integration/Dao/RecoveryCodeStaticGeneratorTest.php +++ b/plugins/TwoFactorAuth/tests/Integration/Dao/RecoveryCodeStaticGeneratorTest.php @@ -8,7 +8,6 @@ namespace Piwik\Plugins\TwoFactorAuth\tests\Integration\Dao; -use Piwik\Common; use Piwik\Plugins\TwoFactorAuth\Dao\RecoveryCodeStaticGenerator; use Piwik\Tests\Framework\TestCase\IntegrationTestCase; diff --git a/plugins/TwoFactorAuth/tests/Integration/Dao/TwoFaSecretRandomGeneratorTest.php b/plugins/TwoFactorAuth/tests/Integration/Dao/TwoFaSecretRandomGeneratorTest.php index 6f04416457..d6c610d344 100644 --- a/plugins/TwoFactorAuth/tests/Integration/Dao/TwoFaSecretRandomGeneratorTest.php +++ b/plugins/TwoFactorAuth/tests/Integration/Dao/TwoFaSecretRandomGeneratorTest.php @@ -8,7 +8,6 @@ namespace Piwik\Plugins\TwoFactorAuth\tests\Integration\Dao; -use Piwik\Common; use Piwik\Plugins\TwoFactorAuth\Dao\TwoFaSecretRandomGenerator; use Piwik\Tests\Framework\TestCase\IntegrationTestCase; diff --git a/plugins/TwoFactorAuth/tests/Integration/TwoFactorAuthenticationTest.php b/plugins/TwoFactorAuth/tests/Integration/TwoFactorAuthenticationTest.php index b4ede7e6ab..045266a0b5 100644 --- a/plugins/TwoFactorAuth/tests/Integration/TwoFactorAuthenticationTest.php +++ b/plugins/TwoFactorAuth/tests/Integration/TwoFactorAuthenticationTest.php @@ -8,7 +8,6 @@ namespace Piwik\Plugins\TwoFactorAuth\tests\Integration; -use Piwik\Common; use Piwik\Container\StaticContainer; use Piwik\Option; use Piwik\Plugins\TwoFactorAuth\Dao\RecoveryCodeDao; diff --git a/plugins/TwoFactorAuth/tests/System/TwoFactorAuthTest.php b/plugins/TwoFactorAuth/tests/System/TwoFactorAuthTest.php index f2398a0856..db4f069566 100644 --- a/plugins/TwoFactorAuth/tests/System/TwoFactorAuthTest.php +++ b/plugins/TwoFactorAuth/tests/System/TwoFactorAuthTest.php @@ -16,9 +16,6 @@ use Piwik\Plugins\TwoFactorAuth\Dao\RecoveryCodeDao; use Piwik\Plugins\TwoFactorAuth\Dao\TwoFaSecretRandomGenerator; use Piwik\Plugins\TwoFactorAuth\SystemSettings; use Piwik\Plugins\TwoFactorAuth\TwoFactorAuthentication; -use Piwik\Plugins\UsersManager\API; -use Piwik\Tests\Framework\Fixture; -use Piwik\Tests\Framework\Mock\FakeAccess; /** * @group TwoFactorAuth |