@@ -73,7 +73,7 @@ |
||
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | /** |
| 76 | - * @param $className |
|
| 76 | + * @param string $className |
|
| 77 | 77 | * @return self |
| 78 | 78 | */ |
| 79 | 79 | static function readWithoutCache($className) |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | /** |
| 9 | 9 | * AnnotationTag constructor. |
| 10 | 10 | * @param string $name |
| 11 | - * @param string $summary |
|
| 12 | 11 | * @param string $description |
| 13 | 12 | * @param array $children |
| 14 | 13 | * @param AnnotationBlock|AnnotationTag|null $parent |
@@ -375,7 +375,7 @@ |
||
| 375 | 375 | } |
| 376 | 376 | |
| 377 | 377 | /** |
| 378 | - * @return \string[] |
|
| 378 | + * @return string[] |
|
| 379 | 379 | */ |
| 380 | 380 | public function getGlobalHooks() |
| 381 | 381 | { |
@@ -4,6 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | class ClassModifiedChecker extends FileModifiedChecker |
| 6 | 6 | { |
| 7 | + /** |
|
| 8 | + * @param string $className |
|
| 9 | + */ |
|
| 7 | 10 | function __construct($className){ |
| 8 | 11 | $class = new \ReflectionClass($className); |
| 9 | 12 | $files = []; |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * 获取指定参数信息 |
| 94 | - * @param $name |
|
| 94 | + * @param string|null $name |
|
| 95 | 95 | * @return ParamMeta|null |
| 96 | 96 | */ |
| 97 | 97 | public function getParamMeta($name){ |
@@ -82,6 +82,9 @@ |
||
| 82 | 82 | return new DB($app, $connection); |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | + /** |
|
| 86 | + * @param \PDO $connection |
|
| 87 | + */ |
|
| 85 | 88 | public function __construct(Application $app, $connection) |
| 86 | 89 | { |
| 87 | 90 | $this->app = $app; |
@@ -67,10 +67,10 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | |
| 69 | 69 | static public function connect(Application $app, |
| 70 | - $dsn, |
|
| 71 | - $username, |
|
| 72 | - $password, |
|
| 73 | - $options = []) |
|
| 70 | + $dsn, |
|
| 71 | + $username, |
|
| 72 | + $password, |
|
| 73 | + $options = []) |
|
| 74 | 74 | { |
| 75 | 75 | $options += [ |
| 76 | 76 | \PDO::ATTR_ERRMODE =>\PDO::ERRMODE_EXCEPTION, |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | return $this->connection; |
| 166 | 166 | } |
| 167 | 167 | /** |
| 168 | - * Splice sql use raw string(without escaping) |
|
| 168 | + * Splice sql use raw string(without escaping) |
|
| 169 | 169 | * for example: |
| 170 | 170 | * where('time>?', 'now()') => " WHERE time > 'now()' " |
| 171 | 171 | * where('time>?', Sql::raw('now()')) => " WHERE time > now() " |
@@ -5,6 +5,9 @@ discard block |
||
| 5 | 5 | */ |
| 6 | 6 | class AnnotationParams implements \Countable, \ArrayAccess |
| 7 | 7 | { |
| 8 | + /** |
|
| 9 | + * @param integer $limit |
|
| 10 | + */ |
|
| 8 | 11 | public function __construct($text, $limit) |
| 9 | 12 | { |
| 10 | 13 | if($limit == 1){ |
@@ -142,6 +145,12 @@ discard block |
||
| 142 | 145 | } |
| 143 | 146 | } |
| 144 | 147 | |
| 148 | + /** |
|
| 149 | + * @param integer $pos |
|
| 150 | + * @param string $default |
|
| 151 | + * |
|
| 152 | + * @return string |
|
| 153 | + */ |
|
| 145 | 154 | public function getRawParam($pos, $default = null) |
| 146 | 155 | { |
| 147 | 156 | if(isset($this->rawParams[$pos])){ |
@@ -151,6 +160,9 @@ discard block |
||
| 151 | 160 | } |
| 152 | 161 | } |
| 153 | 162 | |
| 163 | + /** |
|
| 164 | + * @param boolean $ignoreError |
|
| 165 | + */ |
|
| 154 | 166 | private function stripSlashes($text, $ignoreError) |
| 155 | 167 | { |
| 156 | 168 | if(strlen($text)>=2 && substr($text,0,1) == '"'){ |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * 获取数组的类型 |
| 52 | - * @param $type |
|
| 52 | + * @param string|null $type |
|
| 53 | 53 | * @return string|null |
| 54 | 54 | */ |
| 55 | 55 | static function getArrayType($type){ |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $line = $e->getLine(); |
| 36 | 36 | } |
| 37 | 37 | if($level){ |
| 38 | - Logger::$level($message, $context +['@file'=>$file, '@line'=>$line]); |
|
| 38 | + Logger::$level($message, $context +['@file'=>$file, '@line'=>$line]); |
|
| 39 | 39 | } |
| 40 | 40 | throw $e; |
| 41 | 41 | } |