规范代码

This commit is contained in:
thinkphp
2016-12-24 21:44:12 +08:00
parent 43b364e286
commit 18f8ee155d
5 changed files with 12 additions and 12 deletions

View File

@@ -219,7 +219,7 @@ class Console
private function getMode() private function getMode()
{ {
if (!function_exists('proc_open')) { if (!function_exists('proc_open')) {
return null; return;
} }
$descriptorspec = [1 => ['pipe', 'w'], 2 => ['pipe', 'w']]; $descriptorspec = [1 => ['pipe', 'w'], 2 => ['pipe', 'w']];

View File

@@ -23,10 +23,10 @@ class DataNotFoundException extends DbException
* @param string $table * @param string $table
* @param array $config * @param array $config
*/ */
public function __construct($message, $table = '', Array $config = []) public function __construct($message, $table = '', array $config = [])
{ {
$this->message = $message; $this->message = $message;
$this->table = $table; $this->table = $table;
$this->setData('Database Config', $config); $this->setData('Database Config', $config);
} }

View File

@@ -22,10 +22,10 @@ class ModelNotFoundException extends DbException
* @param string $message * @param string $message
* @param string $model * @param string $model
*/ */
public function __construct($message, $model = '', Array $config = []) public function __construct($message, $model = '', array $config = [])
{ {
$this->message = $message; $this->message = $message;
$this->model = $model; $this->model = $model;
$this->setData('Database Config', $config); $this->setData('Database Config', $config);
} }

View File

@@ -620,8 +620,8 @@ class Cx extends Taglib
return $parseStr; return $parseStr;
} }
/** /**
* U函数的tag标签 * url函数的tag标签
* 格式:{url link="模块/控制器/方法" vars="参数" suffix="true或者false 是否带有后缀" domain="true或者false 是否携带域名" /} * 格式:{url link="模块/控制器/方法" vars="参数" suffix="true或者false 是否带有后缀" domain="true或者false 是否携带域名" /}
* @access public * @access public
* @param array $tag 标签属性 * @param array $tag 标签属性