@@ -31,6 +31,9 @@ |
||
| 31 | 31 | return $return; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | + /** |
|
| 35 | + * @param string $path |
|
| 36 | + */ |
|
| 34 | 37 | static function parseClass($path) |
| 35 | 38 | { |
| 36 | 39 | $code = file_get_contents($path); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * the constructor |
| 90 | 90 | * |
| 91 | 91 | * @param array $options |
| 92 | - * @return boolean |
|
| 92 | + * @return boolean|null |
|
| 93 | 93 | * @since 0.5.2 |
| 94 | 94 | */ |
| 95 | 95 | public function __construct($options = false) |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | /** |
| 389 | 389 | * Use this method to get the last error ocurred |
| 390 | 390 | * @param void |
| 391 | - * @return string The last error, that occured |
|
| 391 | + * @return boolean The last error, that occured |
|
| 392 | 392 | */ |
| 393 | 393 | public function get_last_error() |
| 394 | 394 | { |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | /** |
| 399 | 399 | * The actual decoding algorithm |
| 400 | 400 | * @param string |
| 401 | - * @return mixed |
|
| 401 | + * @return false|string |
|
| 402 | 402 | */ |
| 403 | 403 | protected function _decode($encoded) |
| 404 | 404 | { |
@@ -455,7 +455,7 @@ discard block |
||
| 455 | 455 | /** |
| 456 | 456 | * The actual encoding algorithm |
| 457 | 457 | * @param string |
| 458 | - * @return mixed |
|
| 458 | + * @return false|string |
|
| 459 | 459 | */ |
| 460 | 460 | protected function _encode($decoded) |
| 461 | 461 | { |
@@ -675,7 +675,7 @@ discard block |
||
| 675 | 675 | * Decomposes a Hangul syllable |
| 676 | 676 | * (see http://www.unicode.org/unicode/reports/tr15/#Hangul |
| 677 | 677 | * @param integer 32bit UCS4 code point |
| 678 | - * @return array Either Hangul Syllable decomposed or original 32bit value as one value array |
|
| 678 | + * @return integer[] Either Hangul Syllable decomposed or original 32bit value as one value array |
|
| 679 | 679 | */ |
| 680 | 680 | protected function _hangul_decompose($char) |
| 681 | 681 | { |
@@ -83,6 +83,9 @@ |
||
| 83 | 83 | return null; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @return string |
|
| 88 | + */ |
|
| 86 | 89 | function colName() |
| 87 | 90 | { |
| 88 | 91 | return "{$this->activeForm->requestFormName}[{$this->activeForm->modelName}][{$this->colName}]"; |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | * |
| 44 | 44 | * @param string $eventName |
| 45 | 45 | * @param string $listenCode |
| 46 | - * @param array|closure $callback |
|
| 46 | + * @param Closure $callback |
|
| 47 | 47 | * @param boolean $save |
| 48 | 48 | */ |
| 49 | 49 | function listen($eventName, $listenCode, $callback, $save = false) |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | /** |
| 358 | 358 | * Information extractor for col relations path |
| 359 | 359 | * |
| 360 | - * @param string|array $info |
|
| 360 | + * @param string $info |
|
| 361 | 361 | * @return array |
| 362 | 362 | */ |
| 363 | 363 | public static function parseColRecursion($info) |
@@ -432,8 +432,8 @@ discard block |
||
| 432 | 432 | /** |
| 433 | 433 | * Generate params string for col by name |
| 434 | 434 | * |
| 435 | - * @param type $colName |
|
| 436 | - * @return boolean|string |
|
| 435 | + * @param string $colName |
|
| 436 | + * @return false|string |
|
| 437 | 437 | */ |
| 438 | 438 | public static function genColParams($colName) |
| 439 | 439 | { |
@@ -573,7 +573,7 @@ discard block |
||
| 573 | 573 | /** |
| 574 | 574 | * return relations list |
| 575 | 575 | * |
| 576 | - * @return array |
|
| 576 | + * @return string |
|
| 577 | 577 | */ |
| 578 | 578 | public static function relations() |
| 579 | 579 | { |
@@ -1065,7 +1065,7 @@ discard block |
||
| 1065 | 1065 | * |
| 1066 | 1066 | * @param array $params |
| 1067 | 1067 | * @param array $where |
| 1068 | - * @return boolean |
|
| 1068 | + * @return false|null |
|
| 1069 | 1069 | */ |
| 1070 | 1070 | public static function update($params, $where = []) |
| 1071 | 1071 | { |
@@ -15,6 +15,9 @@ |
||
| 15 | 15 | { |
| 16 | 16 | public $xml = null; |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param \SimpleXMLElement $xml |
|
| 20 | + */ |
|
| 18 | 21 | public function __construct($xml) |
| 19 | 22 | { |
| 20 | 23 | $this->xml = $xml; |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | * Get all posible directorys for module files |
| 82 | 82 | * |
| 83 | 83 | * @param string $moduleName |
| 84 | - * @return array |
|
| 84 | + * @return string |
|
| 85 | 85 | */ |
| 86 | 86 | public static function getModulePaths($moduleName) |
| 87 | 87 | { |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | * Get installed modules for app |
| 132 | 132 | * |
| 133 | 133 | * @param \App $app |
| 134 | - * @param boolean|\App $primary |
|
| 134 | + * @param App $primary |
|
| 135 | 135 | * @return array |
| 136 | 136 | */ |
| 137 | 137 | public static function getInstalled($app, $primary = false) |