Commit 03e07f43 by Qiang Xue

cleaned up "use" statements.

parent 1181c1cc
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
namespace yii\base; namespace yii\base;
use Yii; use Yii;
use yii\base\Application;
use yii\helpers\FileHelper; use yii\helpers\FileHelper;
use yii\helpers\Html; use yii\helpers\Html;
use yii\widgets\Block; use yii\widgets\Block;
......
...@@ -8,11 +8,6 @@ ...@@ -8,11 +8,6 @@
namespace yii\db; namespace yii\db;
use yii\db\Connection;
use yii\db\Command;
use yii\db\QueryBuilder;
use yii\db\Expression;
/** /**
* ActiveQuery represents a DB query associated with an Active Record class. * ActiveQuery represents a DB query associated with an Active Record class.
* *
......
...@@ -14,9 +14,6 @@ use yii\base\InvalidParamException; ...@@ -14,9 +14,6 @@ use yii\base\InvalidParamException;
use yii\base\ModelEvent; use yii\base\ModelEvent;
use yii\base\UnknownMethodException; use yii\base\UnknownMethodException;
use yii\base\InvalidCallException; use yii\base\InvalidCallException;
use yii\db\Connection;
use yii\db\TableSchema;
use yii\db\Expression;
use yii\helpers\StringHelper; use yii\helpers\StringHelper;
use yii\helpers\Inflector; use yii\helpers\Inflector;
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
namespace yii\db; namespace yii\db;
use yii\db\Connection;
use yii\db\Command;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
/** /**
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
namespace yii\db; namespace yii\db;
use yii\db\Exception;
use yii\base\NotSupportedException; use yii\base\NotSupportedException;
/** /**
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
namespace yii\helpers\base; namespace yii\helpers\base;
use Yii; use Yii;
use yii\helpers\StringHelper;
/** /**
* Filesystem helper * Filesystem helper
...@@ -255,17 +254,17 @@ class FileHelper ...@@ -255,17 +254,17 @@ class FileHelper
return false; return false;
} }
$path = str_replace('\\', '/', $path); $path = str_replace('\\', '/', $path);
$n = StringHelper::strlen($path); $n = \yii\helpers\StringHelper::strlen($path);
if (!empty($options['except'])) { if (!empty($options['except'])) {
foreach ($options['except'] as $name) { foreach ($options['except'] as $name) {
if (StringHelper::substr($path, -StringHelper::strlen($name), $n) === $name) { if (\yii\helpers\StringHelper::substr($path, -\yii\helpers\StringHelper::strlen($name), $n) === $name) {
return false; return false;
} }
} }
} }
if (!empty($options['only'])) { if (!empty($options['only'])) {
foreach ($options['only'] as $name) { foreach ($options['only'] as $name) {
if (StringHelper::substr($path, -StringHelper::strlen($name), $n) !== $name) { if (\yii\helpers\StringHelper::substr($path, -\yii\helpers\StringHelper::strlen($name), $n) !== $name) {
return false; return false;
} }
} }
......
...@@ -9,7 +9,6 @@ namespace yii\logging; ...@@ -9,7 +9,6 @@ namespace yii\logging;
use Yii; use Yii;
use yii\base\Component; use yii\base\Component;
use yii\base\Application;
/** /**
* Router manages [[Target|log targets]] that record log messages in different media. * Router manages [[Target|log targets]] that record log messages in different media.
......
...@@ -10,7 +10,6 @@ namespace yii\web; ...@@ -10,7 +10,6 @@ namespace yii\web;
use Yii; use Yii;
use yii\base\Action; use yii\base\Action;
use yii\base\ActionFilter; use yii\base\ActionFilter;
use yii\web\HttpException;
/** /**
* AccessControl provides simple access control based on a set of rules. * AccessControl provides simple access control based on a set of rules.
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
namespace yii\web; namespace yii\web;
use Yii; use Yii;
use yii\web\HttpException;
use yii\base\InvalidRouteException; use yii\base\InvalidRouteException;
/** /**
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
namespace yii\web; namespace yii\web;
use Yii; use Yii;
use yii\web\HttpException;
use yii\base\InlineAction; use yii\base\InlineAction;
/** /**
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
namespace yii\web; namespace yii\web;
use yii\base\UserException; use yii\base\UserException;
use yii\web\Response;
/** /**
* HttpException represents an exception caused by an improper request of the end-user. * HttpException represents an exception caused by an improper request of the end-user.
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
namespace yii\web; namespace yii\web;
use Yii; use Yii;
use yii\web\HttpException;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\helpers\SecurityHelper; use yii\helpers\SecurityHelper;
......
...@@ -9,7 +9,6 @@ namespace yii\web; ...@@ -9,7 +9,6 @@ namespace yii\web;
use Yii; use Yii;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\web\HttpException;
use yii\base\InvalidParamException; use yii\base\InvalidParamException;
use yii\helpers\FileHelper; use yii\helpers\FileHelper;
use yii\helpers\Html; use yii\helpers\Html;
......
...@@ -9,7 +9,6 @@ namespace yii\web; ...@@ -9,7 +9,6 @@ namespace yii\web;
use Yii; use Yii;
use yii\base\Component; use yii\base\Component;
use yii\web\HttpException;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
/** /**
......
...@@ -10,7 +10,6 @@ namespace yii\web; ...@@ -10,7 +10,6 @@ namespace yii\web;
use Yii; use Yii;
use yii\base\ActionEvent; use yii\base\ActionEvent;
use yii\base\Behavior; use yii\base\Behavior;
use yii\web\HttpException;
/** /**
* VerbFilter is an action filter that filters by HTTP request methods. * VerbFilter is an action filter that filters by HTTP request methods.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment