@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
91 | - * @param $object |
|
91 | + * @param Swagger $object |
|
92 | 92 | * @return array |
93 | 93 | */ |
94 | 94 | static public function objectToArray($object) |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | /** |
114 | 114 | * @param Application $app |
115 | 115 | * @param ControllerContainer $controller |
116 | - * @param $action |
|
116 | + * @param integer $action |
|
117 | 117 | * @param Route $route |
118 | 118 | * @return array |
119 | 119 | */ |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | /** |
163 | 163 | * @param Application $app |
164 | 164 | * @param ControllerContainer $controller |
165 | - * @param $action |
|
165 | + * @param integer $action |
|
166 | 166 | * @param Route $route |
167 | 167 | * @return null|ResponseObject |
168 | 168 | */ |
@@ -299,6 +299,9 @@ discard block |
||
299 | 299 | return new RefSchemaObject("#/definitions/$name"); |
300 | 300 | } |
301 | 301 | |
302 | + /** |
|
303 | + * @param integer $action |
|
304 | + */ |
|
302 | 305 | public function getParamsSchema(Application $app, |
303 | 306 | ControllerContainer $controller, |
304 | 307 | $action, |
@@ -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) == '"'){ |
@@ -12,7 +12,7 @@ |
||
12 | 12 | /** |
13 | 13 | * 写入文件 |
14 | 14 | * @param string $path 路径 |
15 | - * @param mixed $data 写入的值 |
|
15 | + * @param string $data 写入的值 |
|
16 | 16 | * @param boolean $overwrite 是否覆盖已有文件 |
17 | 17 | * @return boolean |
18 | 18 | */ |
@@ -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){ |