Browse Source

cleaned up "use" statements.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
03e07f4340
  1. 1
      framework/yii/base/View.php
  2. 5
      framework/yii/db/ActiveQuery.php
  3. 3
      framework/yii/db/ActiveRecord.php
  4. 2
      framework/yii/db/ActiveRelation.php
  5. 1
      framework/yii/db/QueryBuilder.php
  6. 7
      framework/yii/helpers/base/FileHelper.php
  7. 1
      framework/yii/logging/Router.php
  8. 1
      framework/yii/web/AccessControl.php
  9. 1
      framework/yii/web/Application.php
  10. 1
      framework/yii/web/Controller.php
  11. 1
      framework/yii/web/HttpException.php
  12. 1
      framework/yii/web/Request.php
  13. 1
      framework/yii/web/Response.php
  14. 1
      framework/yii/web/User.php
  15. 1
      framework/yii/web/VerbFilter.php

1
framework/yii/base/View.php

@ -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;

5
framework/yii/db/ActiveQuery.php

@ -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.
*

3
framework/yii/db/ActiveRecord.php

@ -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;

2
framework/yii/db/ActiveRelation.php

@ -8,8 +8,6 @@
namespace yii\db;
use yii\db\Connection;
use yii\db\Command;
use yii\base\InvalidConfigException;
/**

1
framework/yii/db/QueryBuilder.php

@ -7,7 +7,6 @@
namespace yii\db;
use yii\db\Exception;
use yii\base\NotSupportedException;
/**

7
framework/yii/helpers/base/FileHelper.php

@ -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;
}
}

1
framework/yii/logging/Router.php

@ -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.

1
framework/yii/web/AccessControl.php

@ -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.

1
framework/yii/web/Application.php

@ -8,7 +8,6 @@
namespace yii\web;
use Yii;
use yii\web\HttpException;
use yii\base\InvalidRouteException;
/**

1
framework/yii/web/Controller.php

@ -8,7 +8,6 @@
namespace yii\web;
use Yii;
use yii\web\HttpException;
use yii\base\InlineAction;
/**

1
framework/yii/web/HttpException.php

@ -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.

1
framework/yii/web/Request.php

@ -8,7 +8,6 @@
namespace yii\web;
use Yii;
use yii\web\HttpException;
use yii\base\InvalidConfigException;
use yii\helpers\SecurityHelper;

1
framework/yii/web/Response.php

@ -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;

1
framework/yii/web/User.php

@ -9,7 +9,6 @@ namespace yii\web;
use Yii;
use yii\base\Component;
use yii\web\HttpException;
use yii\base\InvalidConfigException;
/**

1
framework/yii/web/VerbFilter.php

@ -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.

Loading…
Cancel
Save