Commit 03e07f43 by Qiang Xue

cleaned up "use" statements.

parent 1181c1cc
......@@ -8,7 +8,6 @@
namespace yii\base;
use Yii;
use yii\base\Application;
use yii\helpers\FileHelper;
use yii\helpers\Html;
use yii\widgets\Block;
......
......@@ -8,11 +8,6 @@
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.
*
......
......@@ -14,9 +14,6 @@ use yii\base\InvalidParamException;
use yii\base\ModelEvent;
use yii\base\UnknownMethodException;
use yii\base\InvalidCallException;
use yii\db\Connection;
use yii\db\TableSchema;
use yii\db\Expression;
use yii\helpers\StringHelper;
use yii\helpers\Inflector;
......
......@@ -8,8 +8,6 @@
namespace yii\db;
use yii\db\Connection;
use yii\db\Command;
use yii\base\InvalidConfigException;
/**
......
......@@ -7,7 +7,6 @@
namespace yii\db;
use yii\db\Exception;
use yii\base\NotSupportedException;
/**
......
......@@ -10,7 +10,6 @@
namespace yii\helpers\base;
use Yii;
use yii\helpers\StringHelper;
/**
* Filesystem helper
......@@ -255,17 +254,17 @@ class FileHelper
return false;
}
$path = str_replace('\\', '/', $path);
$n = StringHelper::strlen($path);
$n = \yii\helpers\StringHelper::strlen($path);
if (!empty($options['except'])) {
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;
}
}
}
if (!empty($options['only'])) {
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;
}
}
......
......@@ -9,7 +9,6 @@ namespace yii\logging;
use Yii;
use yii\base\Component;
use yii\base\Application;
/**
* Router manages [[Target|log targets]] that record log messages in different media.
......
......@@ -10,7 +10,6 @@ namespace yii\web;
use Yii;
use yii\base\Action;
use yii\base\ActionFilter;
use yii\web\HttpException;
/**
* AccessControl provides simple access control based on a set of rules.
......
......@@ -8,7 +8,6 @@
namespace yii\web;
use Yii;
use yii\web\HttpException;
use yii\base\InvalidRouteException;
/**
......
......@@ -8,7 +8,6 @@
namespace yii\web;
use Yii;
use yii\web\HttpException;
use yii\base\InlineAction;
/**
......
......@@ -8,7 +8,6 @@
namespace yii\web;
use yii\base\UserException;
use yii\web\Response;
/**
* HttpException represents an exception caused by an improper request of the end-user.
......
......@@ -8,7 +8,6 @@
namespace yii\web;
use Yii;
use yii\web\HttpException;
use yii\base\InvalidConfigException;
use yii\helpers\SecurityHelper;
......
......@@ -9,7 +9,6 @@ namespace yii\web;
use Yii;
use yii\base\InvalidConfigException;
use yii\web\HttpException;
use yii\base\InvalidParamException;
use yii\helpers\FileHelper;
use yii\helpers\Html;
......
......@@ -9,7 +9,6 @@ namespace yii\web;
use Yii;
use yii\base\Component;
use yii\web\HttpException;
use yii\base\InvalidConfigException;
/**
......
......@@ -10,7 +10,6 @@ namespace yii\web;
use Yii;
use yii\base\ActionEvent;
use yii\base\Behavior;
use yii\web\HttpException;
/**
* 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