mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Applied code style fixes
This commit is contained in:
@ -127,7 +127,7 @@ class ExitCode
|
|||||||
*/
|
*/
|
||||||
public static $reasons = [
|
public static $reasons = [
|
||||||
self::OK => 'Success',
|
self::OK => 'Success',
|
||||||
self::UNSPECIFIED_ERROR => "Unspecified error",
|
self::UNSPECIFIED_ERROR => 'Unspecified error',
|
||||||
self::USAGE => 'Incorrect usage, argument or option error',
|
self::USAGE => 'Incorrect usage, argument or option error',
|
||||||
self::DATAERR => 'Error in input data',
|
self::DATAERR => 'Error in input data',
|
||||||
self::NOINPUT => 'Input file not found or unreadable',
|
self::NOINPUT => 'Input file not found or unreadable',
|
||||||
@ -154,6 +154,6 @@ class ExitCode
|
|||||||
*/
|
*/
|
||||||
public static function getReason($exitCode)
|
public static function getReason($exitCode)
|
||||||
{
|
{
|
||||||
return isset($exReasons[$exitCode]) ? $exReasons[$exitCode] : "Unknown exit code";
|
return isset($exReasons[$exitCode]) ? $exReasons[$exitCode] : 'Unknown exit code';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
namespace yii\data;
|
namespace yii\data;
|
||||||
|
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidConfigException;
|
|
||||||
use yii\base\BaseObject;
|
use yii\base\BaseObject;
|
||||||
|
use yii\base\InvalidConfigException;
|
||||||
use yii\helpers\Html;
|
use yii\helpers\Html;
|
||||||
use yii\helpers\Inflector;
|
use yii\helpers\Inflector;
|
||||||
use yii\web\Request;
|
use yii\web\Request;
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
namespace yii\db;
|
namespace yii\db;
|
||||||
|
|
||||||
use Yii;
|
use Yii;
|
||||||
|
use yii\base\BaseObject;
|
||||||
use yii\base\InvalidCallException;
|
use yii\base\InvalidCallException;
|
||||||
use yii\base\InvalidConfigException;
|
use yii\base\InvalidConfigException;
|
||||||
use yii\base\NotSupportedException;
|
use yii\base\NotSupportedException;
|
||||||
use yii\base\BaseObject;
|
|
||||||
use yii\caching\Cache;
|
use yii\caching\Cache;
|
||||||
use yii\caching\CacheInterface;
|
use yii\caching\CacheInterface;
|
||||||
use yii\caching\TagDependency;
|
use yii\caching\TagDependency;
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
namespace yii\db;
|
namespace yii\db;
|
||||||
|
|
||||||
use yii\base\InvalidParamException;
|
|
||||||
use yii\base\BaseObject;
|
use yii\base\BaseObject;
|
||||||
|
use yii\base\InvalidParamException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TableSchema represents the metadata of a database table.
|
* TableSchema represents the metadata of a database table.
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
namespace yii\mail;
|
namespace yii\mail;
|
||||||
|
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\ErrorHandler;
|
|
||||||
use yii\base\BaseObject;
|
use yii\base\BaseObject;
|
||||||
|
use yii\base\ErrorHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BaseMessage serves as a base class that implements the [[send()]] method required by [[MessageInterface]].
|
* BaseMessage serves as a base class that implements the [[send()]] method required by [[MessageInterface]].
|
||||||
|
@ -9,8 +9,8 @@ namespace yii\web;
|
|||||||
|
|
||||||
use ArrayIterator;
|
use ArrayIterator;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidCallException;
|
|
||||||
use yii\base\BaseObject;
|
use yii\base\BaseObject;
|
||||||
|
use yii\base\InvalidCallException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CookieCollection maintains the cookies available in the current request.
|
* CookieCollection maintains the cookies available in the current request.
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
namespace yii\web;
|
namespace yii\web;
|
||||||
|
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidConfigException;
|
|
||||||
use yii\base\BaseObject;
|
use yii\base\BaseObject;
|
||||||
|
use yii\base\InvalidConfigException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UrlNormalizer normalizes URLs for [[UrlManager]] and [[UrlRule]].
|
* UrlNormalizer normalizes URLs for [[UrlManager]] and [[UrlRule]].
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
namespace yii\web;
|
namespace yii\web;
|
||||||
|
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\base\InvalidConfigException;
|
|
||||||
use yii\base\BaseObject;
|
use yii\base\BaseObject;
|
||||||
|
use yii\base\InvalidConfigException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UrlRule represents a rule used by [[UrlManager]] for parsing and generating URLs.
|
* UrlRule represents a rule used by [[UrlManager]] for parsing and generating URLs.
|
||||||
|
Reference in New Issue
Block a user