@@ -108,6 +108,9 @@ discard block |
||
108 | 108 | return array_merge(parent::options($actionID), ['updateFiles']); |
109 | 109 | } |
110 | 110 | |
111 | + /** |
|
112 | + * @param string|null $root |
|
113 | + */ |
|
111 | 114 | protected function findFiles($root) |
112 | 115 | { |
113 | 116 | $except = []; |
@@ -371,6 +374,10 @@ discard block |
||
371 | 374 | // TODO |
372 | 375 | } |
373 | 376 | |
377 | + /** |
|
378 | + * @param null|string $className |
|
379 | + * @param string $propertyDoc |
|
380 | + */ |
|
374 | 381 | protected function updateClassPropertyDocs($file, $className, $propertyDoc) |
375 | 382 | { |
376 | 383 | $ref = new \ReflectionClass($className); |
@@ -440,7 +447,7 @@ discard block |
||
440 | 447 | /** |
441 | 448 | * remove multi empty lines and trim trailing whitespace |
442 | 449 | * |
443 | - * @param $doc |
|
450 | + * @param string $doc |
|
444 | 451 | * @return string |
445 | 452 | */ |
446 | 453 | protected function cleanDocComment($doc) |
@@ -459,7 +466,7 @@ discard block |
||
459 | 466 | |
460 | 467 | /** |
461 | 468 | * Replace property annotations in doc comment |
462 | - * @param $doc |
|
469 | + * @param string $doc |
|
463 | 470 | * @param $properties |
464 | 471 | * @return string |
465 | 472 | */ |
@@ -621,6 +628,9 @@ discard block |
||
621 | 628 | return [$className, $phpdoc]; |
622 | 629 | } |
623 | 630 | |
631 | + /** |
|
632 | + * @param string $pattern |
|
633 | + */ |
|
624 | 634 | protected function match($pattern, $subject, $split = false) |
625 | 635 | { |
626 | 636 | $sets = []; |
@@ -642,6 +652,9 @@ discard block |
||
642 | 652 | return $sets; |
643 | 653 | } |
644 | 654 | |
655 | + /** |
|
656 | + * @param string $str |
|
657 | + */ |
|
645 | 658 | protected function fixSentence($str) |
646 | 659 | { |
647 | 660 | // TODO fix word wrap |
@@ -650,6 +663,9 @@ discard block |
||
650 | 663 | return strtoupper(substr($str, 0, 1)) . substr($str, 1) . ($str[strlen($str) - 1] != '.' ? '.' : ''); |
651 | 664 | } |
652 | 665 | |
666 | + /** |
|
667 | + * @param string $param |
|
668 | + */ |
|
653 | 669 | protected function getPropParam($prop, $param) |
654 | 670 | { |
655 | 671 | return isset($prop['property']) ? $prop['property'][$param] : (isset($prop['get']) ? $prop['get'][$param] : $prop['set'][$param]); |
@@ -401,7 +401,7 @@ |
||
401 | 401 | * $model->validators[] = $newValidator; |
402 | 402 | * ~~~ |
403 | 403 | * |
404 | - * @return ArrayObject|\yii\validators\Validator[] all the validators declared in the model. |
|
404 | + * @return ArrayObject all the validators declared in the model. |
|
405 | 405 | */ |
406 | 406 | public function getValidators() |
407 | 407 | { |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * Verifies and decrypts data encrypted with [[encryptByPassword()]]. |
133 | 133 | * @param string $data the encrypted data to decrypt |
134 | 134 | * @param string $password the password to use for decryption |
135 | - * @return bool|string the decrypted data or false on authentication failure |
|
135 | + * @return false|string the decrypted data or false on authentication failure |
|
136 | 136 | * @see encryptByPassword() |
137 | 137 | */ |
138 | 138 | public function decryptByPassword($data, $password) |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * @param string $data the encrypted data to decrypt |
146 | 146 | * @param string $inputKey the input to use for encryption and authentication |
147 | 147 | * @param string $info optional context and application specific information, see [[hkdf()]] |
148 | - * @return bool|string the decrypted data or false on authentication failure |
|
148 | + * @return false|string the decrypted data or false on authentication failure |
|
149 | 149 | * @see encryptByKey() |
150 | 150 | */ |
151 | 151 | public function decryptByKey($data, $inputKey, $info = null) |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * @param string $secret the decryption password or key |
213 | 213 | * @param string $info context/application specific information, @see encrypt() |
214 | 214 | * |
215 | - * @return bool|string the decrypted data or false on authentication failure |
|
215 | + * @return false|string the decrypted data or false on authentication failure |
|
216 | 216 | * @throws InvalidConfigException on OpenSSL not loaded |
217 | 217 | * @throws Exception on OpenSSL error |
218 | 218 | * @see encrypt() |
@@ -138,7 +138,7 @@ |
||
138 | 138 | /** |
139 | 139 | * Generates a hash code that can be used for client side validation. |
140 | 140 | * @param string $code the CAPTCHA code |
141 | - * @return string a hash code generated from the CAPTCHA code |
|
141 | + * @return integer a hash code generated from the CAPTCHA code |
|
142 | 142 | */ |
143 | 143 | public function generateValidationHash($code) |
144 | 144 | { |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * ~~~ |
184 | 184 | * |
185 | 185 | * @param string $string the string to print |
186 | - * @return int|boolean Number of bytes printed or false on error |
|
186 | + * @return integer Number of bytes printed or false on error |
|
187 | 187 | */ |
188 | 188 | public function stdout($string) |
189 | 189 | { |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | * ~~~ |
209 | 209 | * |
210 | 210 | * @param string $string the string to print |
211 | - * @return int|boolean Number of bytes printed or false on error |
|
211 | + * @return integer Number of bytes printed or false on error |
|
212 | 212 | */ |
213 | 213 | public function stderr($string) |
214 | 214 | { |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | * |
249 | 249 | * @param string $message to echo out before waiting for user input |
250 | 250 | * @param boolean $default this value is returned if no selection is made. |
251 | - * @return boolean whether user confirmed. |
|
251 | + * @return boolean|null whether user confirmed. |
|
252 | 252 | * Will return true if [[interactive]] is false. |
253 | 253 | */ |
254 | 254 | public function confirm($message, $default = false) |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | * until [[beforeAction()]] is being called. |
285 | 285 | * |
286 | 286 | * @param string $actionID the action id of the current request |
287 | - * @return array the names of the options valid for the action |
|
287 | + * @return string[] the names of the options valid for the action |
|
288 | 288 | */ |
289 | 289 | public function options($actionID) |
290 | 290 | { |
@@ -225,7 +225,7 @@ |
||
225 | 225 | /** |
226 | 226 | * Prompts user with confirmation if caches should be flushed. |
227 | 227 | * @param array $cachesNames |
228 | - * @return boolean |
|
228 | + * @return boolean|null |
|
229 | 229 | */ |
230 | 230 | private function confirmFlush($cachesNames) |
231 | 231 | { |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | * Prompts user with confirmation if fixtures should be loaded. |
301 | 301 | * @param array $fixtures |
302 | 302 | * @param array $except |
303 | - * @return boolean |
|
303 | + * @return boolean|null |
|
304 | 304 | */ |
305 | 305 | private function confirmLoad($fixtures, $except) |
306 | 306 | { |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | * Prompts user with confirmation for fixtures that should be unloaded. |
330 | 330 | * @param array $fixtures |
331 | 331 | * @param array $except |
332 | - * @return boolean |
|
332 | + * @return boolean|null |
|
333 | 333 | */ |
334 | 334 | private function confirmUnload($fixtures, $except) |
335 | 335 | { |
@@ -370,7 +370,7 @@ |
||
370 | 370 | * Finds out a line of the first non-char PHP token found |
371 | 371 | * |
372 | 372 | * @param array $tokens |
373 | - * @return int|string |
|
373 | + * @return string |
|
374 | 374 | * @since 2.0.1 |
375 | 375 | */ |
376 | 376 | protected function getLine($tokens) |
@@ -385,7 +385,7 @@ |
||
385 | 385 | * @param boolean|array $eagerLoading whether to eager load the relations specified in `$with`. |
386 | 386 | * When this is a boolean, it applies to all relations specified in `$with`. Use an array |
387 | 387 | * to explicitly list which relations in `$with` need to be eagerly loaded. |
388 | - * @param string|array $joinType the join type of the relations specified in `$with`. |
|
388 | + * @param string $joinType the join type of the relations specified in `$with`. |
|
389 | 389 | * When this is a string, it applies to all relations specified in `$with`. Use an array |
390 | 390 | * in the format of `relationName => joinType` to specify different join types for different relations. |
391 | 391 | * @return $this the query object itself |