Applied code style fixes

This commit is contained in:
Alexander Makarov
2017-07-21 15:42:06 +03:00
parent acf29e0001
commit 1f26db9fb7
13 changed files with 19 additions and 19 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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