Browse Source

Removed unneeded use statements

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
ee2af2661c
  1. 1
      framework/yii/BaseYii.php
  2. 1
      framework/yii/base/Theme.php
  3. 1
      framework/yii/bootstrap/Widget.php
  4. 1
      framework/yii/gii/generators/crud/Generator.php
  5. 1
      framework/yii/gii/views/default/view.php
  6. 1
      framework/yii/gii/views/default/view/files.php
  7. 4
      framework/yii/gii/views/default/view/results.php
  8. 2
      framework/yii/grid/ActionColumn.php
  9. 2
      framework/yii/grid/GridView.php
  10. 1
      framework/yii/i18n/I18N.php
  11. 3
      framework/yii/web/YiiAsset.php
  12. 1
      framework/yii/widgets/ActiveField.php
  13. 2
      tests/unit/data/ar/ActiveRecord.php
  14. 1
      tests/unit/framework/caching/CacheTestCase.php
  15. 1
      tests/unit/framework/caching/RedisCacheTest.php
  16. 1
      tests/unit/framework/caching/ZendDataCacheTest.php
  17. 1
      tests/unit/framework/db/ActiveRecordTest.php
  18. 3
      tests/unit/framework/db/CommandTest.php
  19. 3
      tests/unit/framework/db/QueryTest.php
  20. 1
      tests/unit/framework/db/cubrid/CubridQueryBuilderTest.php
  21. 1
      tests/unit/framework/i18n/GettextMessageSourceTest.php
  22. 1
      tests/unit/framework/i18n/I18NTest.php
  23. 1
      tests/unit/framework/validators/UniqueValidatorTest.php

1
framework/yii/BaseYii.php

@ -6,7 +6,6 @@
*/ */
namespace yii; namespace yii;
use yii\base\Exception;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\base\InvalidParamException; use yii\base\InvalidParamException;
use yii\base\UnknownClassException; use yii\base\UnknownClassException;

1
framework/yii/base/Theme.php

@ -8,7 +8,6 @@
namespace yii\base; namespace yii\base;
use Yii; use Yii;
use yii\base\InvalidConfigException;
use yii\helpers\FileHelper; use yii\helpers\FileHelper;
/** /**

1
framework/yii/bootstrap/Widget.php

@ -8,7 +8,6 @@
namespace yii\bootstrap; namespace yii\bootstrap;
use Yii; use Yii;
use yii\base\View;
use yii\helpers\Json; use yii\helpers\Json;
/** /**

1
framework/yii/gii/generators/crud/Generator.php

@ -8,7 +8,6 @@
namespace yii\gii\generators\crud; namespace yii\gii\generators\crud;
use Yii; use Yii;
use yii\base\Model;
use yii\db\ActiveRecord; use yii\db\ActiveRecord;
use yii\db\Schema; use yii\db\Schema;
use yii\gii\CodeFile; use yii\gii\CodeFile;

1
framework/yii/gii/views/default/view.php

@ -1,6 +1,5 @@
<?php <?php
use yii\gii\Generator;
use yii\helpers\Html; use yii\helpers\Html;
use yii\widgets\ActiveForm; use yii\widgets\ActiveForm;
use yii\gii\components\ActiveField; use yii\gii\components\ActiveField;

1
framework/yii/gii/views/default/view/files.php

@ -1,6 +1,5 @@
<?php <?php
use yii\gii\Generator;
use yii\helpers\Html; use yii\helpers\Html;
use yii\gii\CodeFile; use yii\gii\CodeFile;

4
framework/yii/gii/views/default/view/results.php

@ -1,8 +1,4 @@
<?php <?php
use yii\gii\Generator;
use yii\gii\CodeFile;
/** /**
* @var yii\base\View $this * @var yii\base\View $this
* @var yii\gii\Generator $generator * @var yii\gii\Generator $generator

2
framework/yii/grid/ActionColumn.php

@ -10,8 +10,6 @@ namespace yii\grid;
use Yii; use Yii;
use Closure; use Closure;
use yii\helpers\Html; use yii\helpers\Html;
use yii\helpers\Inflector;
use yii\helpers\StringHelper;
/** /**
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>

2
framework/yii/grid/GridView.php

@ -11,8 +11,6 @@ use Yii;
use Closure; use Closure;
use yii\base\Formatter; use yii\base\Formatter;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\base\Widget;
use yii\db\ActiveRecord;
use yii\helpers\Html; use yii\helpers\Html;
use yii\helpers\Json; use yii\helpers\Json;
use yii\widgets\BaseListView; use yii\widgets\BaseListView;

1
framework/yii/i18n/I18N.php

@ -10,7 +10,6 @@ namespace yii\i18n;
use Yii; use Yii;
use yii\base\Component; use yii\base\Component;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\log\Logger;
/** /**
* I18N provides features related with internationalization (I18N) and localization (L10N). * I18N provides features related with internationalization (I18N) and localization (L10N).

3
framework/yii/web/YiiAsset.php

@ -7,9 +7,6 @@
namespace yii\web; namespace yii\web;
use Yii;
use yii\base\View;
/** /**
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0

1
framework/yii/widgets/ActiveField.php

@ -8,7 +8,6 @@ namespace yii\widgets;
use Yii; use Yii;
use yii\base\Component; use yii\base\Component;
use yii\db\ActiveRecord;
use yii\helpers\ArrayHelper; use yii\helpers\ArrayHelper;
use yii\helpers\Html; use yii\helpers\Html;
use yii\base\Model; use yii\base\Model;

2
tests/unit/data/ar/ActiveRecord.php

@ -7,8 +7,6 @@
namespace yiiunit\data\ar; namespace yiiunit\data\ar;
use yii\db\Connection;
/** /**
* ActiveRecord is ... * ActiveRecord is ...
* *

1
tests/unit/framework/caching/CacheTestCase.php

@ -13,7 +13,6 @@ function time()
namespace yiiunit\framework\caching; namespace yiiunit\framework\caching;
use yii\helpers\StringHelper;
use yiiunit\TestCase; use yiiunit\TestCase;
use yii\caching\Cache; use yii\caching\Cache;

1
tests/unit/framework/caching/RedisCacheTest.php

@ -2,7 +2,6 @@
namespace yiiunit\framework\caching; namespace yiiunit\framework\caching;
use yii\caching\MemCache; use yii\caching\MemCache;
use yii\caching\RedisCache; use yii\caching\RedisCache;
use yiiunit\TestCase;
/** /**
* Class for testing redis cache backend * Class for testing redis cache backend

1
tests/unit/framework/caching/ZendDataCacheTest.php

@ -1,7 +1,6 @@
<?php <?php
namespace yiiunit\framework\caching; namespace yiiunit\framework\caching;
use yii\caching\Cache;
use yii\caching\ZendDataCache; use yii\caching\ZendDataCache;
/** /**

1
tests/unit/framework/db/ActiveRecordTest.php

@ -1,7 +1,6 @@
<?php <?php
namespace yiiunit\framework\db; namespace yiiunit\framework\db;
use yii\db\Query;
use yii\db\ActiveQuery; use yii\db\ActiveQuery;
use yiiunit\data\ar\ActiveRecord; use yiiunit\data\ar\ActiveRecord;
use yiiunit\data\ar\Customer; use yiiunit\data\ar\Customer;

3
tests/unit/framework/db/CommandTest.php

@ -2,9 +2,6 @@
namespace yiiunit\framework\db; namespace yiiunit\framework\db;
use yii\db\Connection;
use yii\db\Command;
use yii\db\Query;
use yii\db\DataReader; use yii\db\DataReader;
/** /**

3
tests/unit/framework/db/QueryTest.php

@ -2,10 +2,7 @@
namespace yiiunit\framework\db; namespace yiiunit\framework\db;
use yii\db\Connection;
use yii\db\Command;
use yii\db\Query; use yii\db\Query;
use yii\db\DataReader;
/** /**
* @group db * @group db

1
tests/unit/framework/db/cubrid/CubridQueryBuilderTest.php

@ -2,7 +2,6 @@
namespace yiiunit\framework\db\cubrid; namespace yiiunit\framework\db\cubrid;
use yii\base\NotSupportedException;
use yii\db\sqlite\Schema; use yii\db\sqlite\Schema;
use yiiunit\framework\db\QueryBuilderTest; use yiiunit\framework\db\QueryBuilderTest;

1
tests/unit/framework/i18n/GettextMessageSourceTest.php

@ -2,7 +2,6 @@
namespace yiiunit\framework\i18n; namespace yiiunit\framework\i18n;
use yii\i18n\GettextMessageSource;
use yiiunit\TestCase; use yiiunit\TestCase;
/** /**

1
tests/unit/framework/i18n/I18NTest.php

@ -9,7 +9,6 @@ namespace yiiunit\framework\i18n;
use yii\base\Model; use yii\base\Model;
use yii\i18n\I18N; use yii\i18n\I18N;
use yii\i18n\MessageFormatter;
use yii\i18n\PhpMessageSource; use yii\i18n\PhpMessageSource;
use yiiunit\TestCase; use yiiunit\TestCase;

1
tests/unit/framework/validators/UniqueValidatorTest.php

@ -10,7 +10,6 @@ use yiiunit\data\validators\models\FakedValidationModel;
use yiiunit\data\validators\models\ValidatorTestMainModel; use yiiunit\data\validators\models\ValidatorTestMainModel;
use yiiunit\data\validators\models\ValidatorTestRefModel; use yiiunit\data\validators\models\ValidatorTestRefModel;
use yiiunit\framework\db\DatabaseTestCase; use yiiunit\framework\db\DatabaseTestCase;
use yiiunit\TestCase;
class UniqueValidatorTest extends DatabaseTestCase class UniqueValidatorTest extends DatabaseTestCase
{ {

Loading…
Cancel
Save