diff --git a/framework/caching/DbDependency.php b/framework/caching/DbDependency.php index cd11983a4d..0b86e6e16b 100644 --- a/framework/caching/DbDependency.php +++ b/framework/caching/DbDependency.php @@ -7,7 +7,6 @@ namespace yii\caching; -use Yii; use yii\base\InvalidConfigException; use yii\db\Connection; use yii\di\Instance; diff --git a/framework/captcha/Captcha.php b/framework/captcha/Captcha.php index 065c171a61..7126512286 100644 --- a/framework/captcha/Captcha.php +++ b/framework/captcha/Captcha.php @@ -7,7 +7,6 @@ namespace yii\captcha; -use Yii; use yii\base\InvalidConfigException; use yii\helpers\Html; use yii\helpers\Json; diff --git a/framework/db/mysql/QueryBuilder.php b/framework/db/mysql/QueryBuilder.php index 6c9083d457..a5c006aa9d 100644 --- a/framework/db/mysql/QueryBuilder.php +++ b/framework/db/mysql/QueryBuilder.php @@ -8,7 +8,6 @@ namespace yii\db\mysql; use yii\base\InvalidArgumentException; -use yii\base\NotSupportedException; use yii\caching\CacheInterface; use yii\caching\DbCache; use yii\db\Exception; diff --git a/framework/widgets/InputWidget.php b/framework/widgets/InputWidget.php index 78e01d6124..d8b4f9b974 100644 --- a/framework/widgets/InputWidget.php +++ b/framework/widgets/InputWidget.php @@ -7,7 +7,6 @@ namespace yii\widgets; -use Yii; use yii\base\InvalidConfigException; use yii\base\Model; use yii\base\Widget; diff --git a/framework/widgets/LinkPager.php b/framework/widgets/LinkPager.php index 9827f4506b..122e8e3cb9 100644 --- a/framework/widgets/LinkPager.php +++ b/framework/widgets/LinkPager.php @@ -7,7 +7,6 @@ namespace yii\widgets; -use Yii; use yii\base\InvalidConfigException; use yii\base\Widget; use yii\data\Pagination; diff --git a/framework/widgets/LinkSorter.php b/framework/widgets/LinkSorter.php index 8e5062ce35..cc782ce259 100644 --- a/framework/widgets/LinkSorter.php +++ b/framework/widgets/LinkSorter.php @@ -7,7 +7,6 @@ namespace yii\widgets; -use Yii; use yii\base\InvalidConfigException; use yii\base\Widget; use yii\data\Sort; diff --git a/tests/framework/behaviors/BlameableBehaviorConsoleTest.php b/tests/framework/behaviors/BlameableBehaviorConsoleTest.php index 389be398a8..2215e334cd 100755 --- a/tests/framework/behaviors/BlameableBehaviorConsoleTest.php +++ b/tests/framework/behaviors/BlameableBehaviorConsoleTest.php @@ -8,10 +8,8 @@ namespace yiiunit\framework\behaviors; use Yii; -use yii\base\BaseObject; use yii\behaviors\BlameableBehavior; use yii\db\ActiveRecord; -use yii\db\BaseActiveRecord; use yiiunit\TestCase; /** diff --git a/tests/framework/behaviors/OptimisticLockBehaviorTest.php b/tests/framework/behaviors/OptimisticLockBehaviorTest.php index 098b810ddd..0714fe4343 100644 --- a/tests/framework/behaviors/OptimisticLockBehaviorTest.php +++ b/tests/framework/behaviors/OptimisticLockBehaviorTest.php @@ -12,8 +12,6 @@ use yii\behaviors\OptimisticLockBehavior; use yii\web\Request; use yii\db\ActiveRecord; use yii\db\Connection; -use yii\db\Expression; -use yii\db\ExpressionInterface; use yiiunit\TestCase; /** diff --git a/tests/framework/console/FakeHelpControllerWithoutOutput.php b/tests/framework/console/FakeHelpControllerWithoutOutput.php index 02e8af60c5..df09297d06 100644 --- a/tests/framework/console/FakeHelpControllerWithoutOutput.php +++ b/tests/framework/console/FakeHelpControllerWithoutOutput.php @@ -8,7 +8,6 @@ namespace yiiunit\framework\console; use yii\console\controllers\HelpController; -use yii\helpers\Console; class FakeHelpControllerWithoutOutput extends HelpController { diff --git a/tests/framework/db/ConnectionTest.php b/tests/framework/db/ConnectionTest.php index 8b3a4f65d6..f869347ee4 100644 --- a/tests/framework/db/ConnectionTest.php +++ b/tests/framework/db/ConnectionTest.php @@ -11,7 +11,6 @@ use Yii; use yii\base\InvalidConfigException; use yii\caching\ArrayCache; use yii\db\conditions\AndCondition; -use yii\db\conditions\ExistsConditionBuilder; use yii\db\conditions\OrCondition; use yii\db\Connection; use yii\db\Transaction; diff --git a/tests/framework/db/oci/ActiveRecordTest.php b/tests/framework/db/oci/ActiveRecordTest.php index 21c60e2655..bdfaa5de78 100644 --- a/tests/framework/db/oci/ActiveRecordTest.php +++ b/tests/framework/db/oci/ActiveRecordTest.php @@ -8,9 +8,7 @@ namespace yiiunit\framework\db\oci; use yii\db\ActiveQuery; -use yii\db\Expression; use yiiunit\data\ar\BitValues; -use yiiunit\data\ar\Customer; use yiiunit\data\ar\DefaultPk; use yiiunit\data\ar\DefaultMultiplePk; use yiiunit\data\ar\Order; diff --git a/tests/framework/db/oci/UniqueValidatorTest.php b/tests/framework/db/oci/UniqueValidatorTest.php index c597e5b401..0698a6bad6 100644 --- a/tests/framework/db/oci/UniqueValidatorTest.php +++ b/tests/framework/db/oci/UniqueValidatorTest.php @@ -9,7 +9,6 @@ namespace yiiunit\framework\db\oci; use yii\validators\UniqueValidator; use yiiunit\data\validators\models\ValidatorTestMainModel; -use yiiunit\data\validators\models\ValidatorTestRefModel; /** * @group db diff --git a/tests/framework/db/pgsql/SchemaTest.php b/tests/framework/db/pgsql/SchemaTest.php index 92671c668e..89dfbfb8b3 100644 --- a/tests/framework/db/pgsql/SchemaTest.php +++ b/tests/framework/db/pgsql/SchemaTest.php @@ -7,7 +7,6 @@ namespace yiiunit\framework\db\pgsql; -use yii\db\conditions\ExistsConditionBuilder; use yii\db\Expression; use yiiunit\data\ar\ActiveRecord; use yiiunit\data\ar\EnumTypeInCustomSchema; diff --git a/tests/framework/helpers/FileHelperTest.php b/tests/framework/helpers/FileHelperTest.php index c8b3f34427..d20c60a0ff 100644 --- a/tests/framework/helpers/FileHelperTest.php +++ b/tests/framework/helpers/FileHelperTest.php @@ -6,7 +6,6 @@ */ use yii\helpers\FileHelper; -use yii\helpers\VarDumper; use yiiunit\TestCase; /** diff --git a/tests/framework/rbac/ManagerTestCase.php b/tests/framework/rbac/ManagerTestCase.php index 8c5ead7b54..a5e05bc758 100644 --- a/tests/framework/rbac/ManagerTestCase.php +++ b/tests/framework/rbac/ManagerTestCase.php @@ -7,7 +7,6 @@ namespace yiiunit\framework\rbac; -use yii\base\InvalidParamException; use yii\rbac\BaseManager; use yii\rbac\Item; use yii\rbac\Permission; diff --git a/tests/framework/web/UploadedFileTest.php b/tests/framework/web/UploadedFileTest.php index 9acdd0f04e..35f0d11086 100644 --- a/tests/framework/web/UploadedFileTest.php +++ b/tests/framework/web/UploadedFileTest.php @@ -7,9 +7,7 @@ namespace yiiunit\framework\web; -use Yii; use yii\web\UploadedFile; -use yiiunit\framework\web\mocks\UploadedFileMock; use yiiunit\framework\web\stubs\ModelStub; use yiiunit\framework\web\stubs\VendorImage; use yiiunit\TestCase; diff --git a/tests/framework/widgets/BreadcrumbsTest.php b/tests/framework/widgets/BreadcrumbsTest.php index 2fe732e6e9..9b517e8cb1 100644 --- a/tests/framework/widgets/BreadcrumbsTest.php +++ b/tests/framework/widgets/BreadcrumbsTest.php @@ -7,7 +7,6 @@ namespace yiiunit\framework\widgets; -use Yii; use yii\widgets\Breadcrumbs; /** diff --git a/tests/framework/widgets/MenuTest.php b/tests/framework/widgets/MenuTest.php index 938bec4b35..43809672d2 100644 --- a/tests/framework/widgets/MenuTest.php +++ b/tests/framework/widgets/MenuTest.php @@ -7,7 +7,6 @@ namespace yiiunit\framework\widgets; -use Yii; use yii\widgets\Menu; /**