mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +08:00
Removed unused namespace imports
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
namespace common\models;
|
||||
|
||||
use common\models\User;
|
||||
use yii\base\Model;
|
||||
use Yii;
|
||||
|
||||
|
||||
@ -9,7 +9,6 @@ namespace yii\apidoc\models;
|
||||
|
||||
use phpDocumentor\Reflection\FileReflector;
|
||||
use yii\base\Component;
|
||||
use yii\base\Exception;
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@ -11,7 +11,6 @@ use phpDocumentor\Reflection\DocBlock\Tag\ParamTag;
|
||||
use phpDocumentor\Reflection\DocBlock\Tag\PropertyTag;
|
||||
use phpDocumentor\Reflection\DocBlock\Tag\ReturnTag;
|
||||
use phpDocumentor\Reflection\DocBlock\Tag\ThrowsTag;
|
||||
use yii\base\Exception;
|
||||
|
||||
/**
|
||||
* Represents API documentation information for a `function`.
|
||||
|
||||
@ -8,7 +8,6 @@
|
||||
namespace yii\apidoc\models;
|
||||
|
||||
use phpDocumentor\Reflection\DocBlock\Tag\AuthorTag;
|
||||
use yii\base\Exception;
|
||||
use yii\helpers\StringHelper;
|
||||
|
||||
/**
|
||||
|
||||
@ -11,7 +11,6 @@ use yii\apidoc\models\Context;
|
||||
use yii\console\Controller;
|
||||
use Yii;
|
||||
use yii\helpers\Console;
|
||||
use yii\helpers\FileHelper;
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@ -6,7 +6,6 @@
|
||||
*/
|
||||
|
||||
namespace yii\apidoc\templates\bootstrap\assets;
|
||||
use yii\web\JqueryAsset;
|
||||
use yii\web\View;
|
||||
|
||||
/**
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
<?php
|
||||
use yii\apidoc\templates\bootstrap\SideNavWidget;
|
||||
use yii\helpers\StringHelper;
|
||||
|
||||
/**
|
||||
* @var yii\web\View $this
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
<?php
|
||||
use yii\apidoc\templates\bootstrap\SideNavWidget;
|
||||
use yii\bootstrap\Nav;
|
||||
use yii\bootstrap\NavBar;
|
||||
use yii\helpers\Html;
|
||||
use yii\helpers\StringHelper;
|
||||
use yii\widgets\Menu;
|
||||
|
||||
/**
|
||||
* @var yii\web\View $this
|
||||
|
||||
@ -6,11 +6,7 @@
|
||||
*/
|
||||
|
||||
namespace yii\apidoc\templates\offline;
|
||||
use yii\apidoc\models\Context;
|
||||
use yii\console\Controller;
|
||||
use Yii;
|
||||
use yii\helpers\Console;
|
||||
use yii\helpers\FileHelper;
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@ -6,7 +6,6 @@
|
||||
*/
|
||||
|
||||
namespace yii\apidoc\templates\offline\assets;
|
||||
use yii\web\JqueryAsset;
|
||||
use yii\web\View;
|
||||
|
||||
/**
|
||||
|
||||
@ -11,8 +11,6 @@ use yii\apidoc\models\TypeDoc;
|
||||
use yii\console\Controller;
|
||||
use Yii;
|
||||
use yii\helpers\Console;
|
||||
use yii\helpers\FileHelper;
|
||||
use yii\helpers\StringHelper;
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@ -11,7 +11,6 @@ use Yii;
|
||||
use yii\base\Application;
|
||||
use yii\web\View;
|
||||
use yii\web\ForbiddenHttpException;
|
||||
use yii\helpers\ArrayHelper;
|
||||
|
||||
/**
|
||||
* The Yii Debug Module provides the debug toolbar and debugger
|
||||
|
||||
@ -8,9 +8,7 @@
|
||||
namespace yii\mongodb;
|
||||
|
||||
use yii\base\InvalidConfigException;
|
||||
use yii\base\InvalidParamException;
|
||||
use yii\db\BaseActiveRecord;
|
||||
use yii\base\UnknownMethodException;
|
||||
use yii\db\StaleObjectException;
|
||||
use yii\helpers\Inflector;
|
||||
use yii\helpers\StringHelper;
|
||||
|
||||
@ -8,8 +8,6 @@
|
||||
namespace yii\mongodb;
|
||||
|
||||
use Yii;
|
||||
use yii\mongodb\Connection;
|
||||
use yii\mongodb\Query;
|
||||
use yii\base\InvalidConfigException;
|
||||
|
||||
/**
|
||||
|
||||
@ -8,7 +8,6 @@
|
||||
namespace yii\redis;
|
||||
|
||||
use yii\base\Component;
|
||||
use yii\base\InvalidConfigException;
|
||||
use yii\db\Exception;
|
||||
use yii\helpers\Inflector;
|
||||
|
||||
|
||||
@ -8,7 +8,6 @@
|
||||
namespace yii\sphinx;
|
||||
|
||||
use yii\base\Object;
|
||||
use yii\base\InvalidParamException;
|
||||
|
||||
/**
|
||||
* IndexSchema represents the metadata of a Sphinx index.
|
||||
|
||||
@ -6,7 +6,6 @@
|
||||
*/
|
||||
|
||||
namespace yii\db;
|
||||
use yii\base\InvalidCallException;
|
||||
|
||||
/**
|
||||
* ActiveQueryTrait implements the common methods and properties for active record query classes.
|
||||
|
||||
@ -7,8 +7,6 @@
|
||||
|
||||
namespace yii\helpers;
|
||||
|
||||
use yii\base\InvalidParamException;
|
||||
|
||||
/**
|
||||
* BaseStringHelper provides concrete implementation for [[StringHelper]].
|
||||
*
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
namespace yiiunit\data\ar;
|
||||
|
||||
use yii\db\ActiveQuery;
|
||||
use yiiunit\framework\db\ActiveRecordTest;
|
||||
|
||||
/**
|
||||
|
||||
@ -2,8 +2,6 @@
|
||||
|
||||
namespace yiiunit\data\ar\mongodb;
|
||||
|
||||
use yii\mongodb\ActiveQuery;
|
||||
|
||||
class Customer extends ActiveRecord
|
||||
{
|
||||
public static function collectionName()
|
||||
|
||||
@ -7,8 +7,6 @@
|
||||
|
||||
namespace yiiunit\data\ar\redis;
|
||||
|
||||
use yii\redis\Connection;
|
||||
|
||||
/**
|
||||
* ActiveRecord is ...
|
||||
*
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
|
||||
namespace yiiunit\data\ar\redis;
|
||||
|
||||
use yii\redis\ActiveQuery;
|
||||
use yiiunit\extensions\redis\ActiveRecordTest;
|
||||
|
||||
class Customer extends ActiveRecord
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
<?php
|
||||
namespace yiiunit\data\ar\sphinx;
|
||||
|
||||
use yii\sphinx\ActiveQuery;
|
||||
|
||||
class ArticleIndex extends ActiveRecord
|
||||
{
|
||||
public $custom_column;
|
||||
|
||||
@ -4,7 +4,6 @@ namespace yiiunit\extensions\authclient;
|
||||
|
||||
use yii\authclient\signature\PlainText;
|
||||
use yii\authclient\OAuthToken;
|
||||
use yiiunit\extensions\authclient\TestCase;
|
||||
use yii\authclient\BaseOAuth;
|
||||
|
||||
class BaseOAuthTest extends TestCase
|
||||
|
||||
@ -4,7 +4,6 @@ namespace yiiunit\extensions\authclient;
|
||||
|
||||
use yii\authclient\Collection;
|
||||
use yii\authclient\BaseClient;
|
||||
use yiiunit\extensions\authclient\TestCase;
|
||||
|
||||
class CollectionTest extends TestCase
|
||||
{
|
||||
|
||||
@ -3,10 +3,8 @@
|
||||
namespace yiiunit\extensions\elasticsearch;
|
||||
|
||||
use yii\base\Event;
|
||||
use yii\base\Exception;
|
||||
use yii\db\BaseActiveRecord;
|
||||
use yii\elasticsearch\Connection;
|
||||
use yii\helpers\Json;
|
||||
use yiiunit\framework\ar\ActiveRecordTestTrait;
|
||||
use yiiunit\data\ar\elasticsearch\ActiveRecord;
|
||||
use yiiunit\data\ar\elasticsearch\Customer;
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
|
||||
namespace yiiunit\extensions\redis;
|
||||
|
||||
use yii\redis\ActiveQuery;
|
||||
use yiiunit\data\ar\redis\ActiveRecord;
|
||||
use yiiunit\data\ar\redis\Customer;
|
||||
use yiiunit\data\ar\redis\OrderItem;
|
||||
|
||||
@ -2,8 +2,6 @@
|
||||
|
||||
namespace yiiunit\extensions\redis;
|
||||
|
||||
use yii\redis\Connection;
|
||||
|
||||
/**
|
||||
* @group redis
|
||||
*/
|
||||
|
||||
@ -6,7 +6,6 @@ use yiiunit\data\ar\sphinx\ActiveRecord;
|
||||
use yiiunit\data\ar\ActiveRecord as ActiveRecordDb;
|
||||
use yiiunit\data\ar\sphinx\ArticleIndex;
|
||||
use yiiunit\data\ar\sphinx\ArticleDb;
|
||||
use yiiunit\data\ar\sphinx\TagDb;
|
||||
|
||||
/**
|
||||
* @group sphinx
|
||||
|
||||
@ -3,7 +3,6 @@
|
||||
namespace yiiunit\extensions\sphinx;
|
||||
|
||||
use yii\caching\FileCache;
|
||||
use yii\sphinx\Schema;
|
||||
|
||||
/**
|
||||
* @group sphinx
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
namespace yiiunit\framework\db;
|
||||
|
||||
use yii\db\ActiveQuery;
|
||||
use yiiunit\data\ar\ActiveRecord;
|
||||
use yiiunit\data\ar\Customer;
|
||||
use yiiunit\data\ar\NullValues;
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
|
||||
namespace yiiunit\framework\db;
|
||||
|
||||
use yii\db\Query;
|
||||
use yii\db\QueryBuilder;
|
||||
use yii\db\Schema;
|
||||
use yii\db\mysql\QueryBuilder as MysqlQueryBuilder;
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
namespace yiiunit\framework\db\cubrid;
|
||||
|
||||
use yiiunit\data\ar\Customer;
|
||||
use yiiunit\framework\db\ActiveRecordTest;
|
||||
|
||||
/**
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
namespace yiiunit\framework\db\sqlite;
|
||||
|
||||
use yiiunit\data\ar\Customer;
|
||||
use yiiunit\framework\db\ActiveRecordTest;
|
||||
|
||||
/**
|
||||
|
||||
@ -6,8 +6,6 @@
|
||||
namespace yiiunit\framework\log;
|
||||
|
||||
|
||||
use yii\debug\LogTarget;
|
||||
use yii\log\FileTarget;
|
||||
use yii\log\Logger;
|
||||
use yiiunit\TestCase;
|
||||
|
||||
|
||||
@ -6,8 +6,6 @@
|
||||
namespace yiiunit\framework\log;
|
||||
|
||||
|
||||
use yii\debug\LogTarget;
|
||||
use yii\log\FileTarget;
|
||||
use yii\log\Logger;
|
||||
use yii\log\Target;
|
||||
use yiiunit\TestCase;
|
||||
|
||||
Reference in New Issue
Block a user