@@ -562,7 +562,7 @@ discard block |
||
562 | 562 | * this method will return false |
563 | 563 | * |
564 | 564 | * @param \Cake\ORM\Entity $node The node to move |
565 | - * @param int|bool $number How many places to move the node, or true to move to first position |
|
565 | + * @param integer $number How many places to move the node, or true to move to first position |
|
566 | 566 | * @throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found |
567 | 567 | * @return \Cake\ORM\Entity|bool $node The node after being moved or false on failure |
568 | 568 | */ |
@@ -582,9 +582,9 @@ discard block |
||
582 | 582 | * Helper function used with the actual code for moveUp |
583 | 583 | * |
584 | 584 | * @param \Cake\ORM\Entity $node The node to move |
585 | - * @param int|bool $number How many places to move the node, or true to move to first position |
|
585 | + * @param integer $number How many places to move the node, or true to move to first position |
|
586 | 586 | * @throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found |
587 | - * @return \Cake\ORM\Entity|bool $node The node after being moved or false on failure |
|
587 | + * @return Entity $node The node after being moved or false on failure |
|
588 | 588 | */ |
589 | 589 | protected function _moveUp($node, $number) |
590 | 590 | { |
@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | * this method will return false |
644 | 644 | * |
645 | 645 | * @param \Cake\ORM\Entity $node The node to move |
646 | - * @param int|bool $number How many places to move the node or true to move to last position |
|
646 | + * @param integer $number How many places to move the node or true to move to last position |
|
647 | 647 | * @throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found |
648 | 648 | * @return \Cake\ORM\Entity|bool the entity after being moved or false on failure |
649 | 649 | */ |
@@ -663,9 +663,9 @@ discard block |
||
663 | 663 | * Helper function used with the actual code for moveDown |
664 | 664 | * |
665 | 665 | * @param \Cake\ORM\Entity $node The node to move |
666 | - * @param int|bool $number How many places to move the node, or true to move to last position |
|
666 | + * @param integer $number How many places to move the node, or true to move to last position |
|
667 | 667 | * @throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found |
668 | - * @return \Cake\ORM\Entity|bool $node The node after being moved or false on failure |
|
668 | + * @return Entity $node The node after being moved or false on failure |
|
669 | 669 | */ |
670 | 670 | protected function _moveDown($node, $number) |
671 | 671 | { |
@@ -373,7 +373,7 @@ |
||
373 | 373 | * separated strings representing associations that lead to this `$alias` in the |
374 | 374 | * chain of associations to be loaded. The second value is the path to follow in |
375 | 375 | * entities' properties to fetch a record of the corresponding association. |
376 | - * @return array normalized associations |
|
376 | + * @return EagerLoadable normalized associations |
|
377 | 377 | * @throws \InvalidArgumentException When containments refer to associations that do not exist. |
378 | 378 | */ |
379 | 379 | protected function _normalizeContain(Table $parent, $alias, $options, $paths) |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * |
41 | 41 | * @param array $fields The list of fields to check for uniqueness. |
42 | 42 | * @param string $message The error message to show in case the rule does not pass. |
43 | - * @return callable |
|
43 | + * @return \Closure |
|
44 | 44 | */ |
45 | 45 | public function isUnique(array $fields, $message = null) |
46 | 46 | { |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * primary key lookup in the other table. |
75 | 75 | * @param object|string $table The table name where the fields existence will be checked. |
76 | 76 | * @param string $message The error message to show in case the rule does not pass. |
77 | - * @return callable |
|
77 | + * @return \Closure |
|
78 | 78 | */ |
79 | 79 | public function existsIn($field, $table, $message = null) |
80 | 80 | { |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * validation set, or an associative array, where key is the name of the |
238 | 238 | * validation set and value the Validator instance. |
239 | 239 | * |
240 | - * @param array $config List of options for this table |
|
240 | + * @param boolean $config List of options for this table |
|
241 | 241 | */ |
242 | 242 | public function __construct(array $config = []) |
243 | 243 | { |
@@ -1091,7 +1091,7 @@ discard block |
||
1091 | 1091 | * composite keys when comparing values. |
1092 | 1092 | * |
1093 | 1093 | * @param array $options the original options passed to a finder |
1094 | - * @param array $keys the keys to check in $options to build matchers from |
|
1094 | + * @param string[] $keys the keys to check in $options to build matchers from |
|
1095 | 1095 | * the associated value |
1096 | 1096 | * @return array |
1097 | 1097 | */ |
@@ -1762,7 +1762,7 @@ discard block |
||
1762 | 1762 | * |
1763 | 1763 | * @param string $method The method name that was fired. |
1764 | 1764 | * @param array $args List of arguments passed to the function. |
1765 | - * @return mixed |
|
1765 | + * @return Query |
|
1766 | 1766 | * @throws \BadMethodCallException when there are missing arguments, or when |
1767 | 1767 | * and & or are combined. |
1768 | 1768 | */ |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * @param array $context An array of the current request context. |
50 | 50 | * Contains information such as the current host, scheme, port, and base |
51 | 51 | * directory. |
52 | - * @return mixed either false or a string URL. |
|
52 | + * @return false|string either false or a string URL. |
|
53 | 53 | */ |
54 | 54 | public function match(array $url, array $context = []) |
55 | 55 | { |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * Modifies defaults property so all necessary keys are set |
143 | 143 | * and populates $this->names with the named routing elements. |
144 | 144 | * |
145 | - * @return array Returns a string regular expression of the compiled route. |
|
145 | + * @return string Returns a string regular expression of the compiled route. |
|
146 | 146 | */ |
147 | 147 | public function compile() |
148 | 148 | { |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | * @param array $context An array of the current request context. |
407 | 407 | * Contains information such as the current host, scheme, port, base |
408 | 408 | * directory and other url params. |
409 | - * @return mixed Either a string url for the parameters if they match or false. |
|
409 | + * @return false|string Either a string url for the parameters if they match or false. |
|
410 | 410 | */ |
411 | 411 | public function match(array $url, array $context = []) |
412 | 412 | { |
@@ -163,7 +163,7 @@ |
||
163 | 163 | * Get or set default route class. |
164 | 164 | * |
165 | 165 | * @param string|null $routeClass Class name. |
166 | - * @return string|void |
|
166 | + * @return boolean|null |
|
167 | 167 | */ |
168 | 168 | public static function defaultRouteClass($routeClass = null) |
169 | 169 | { |
@@ -383,7 +383,7 @@ |
||
383 | 383 | * Parse tokens |
384 | 384 | * |
385 | 385 | * @param string $functionName Function name that indicates translatable string (e.g: '__') |
386 | - * @param array $map Array containing what variables it will find (e.g: domain, singular, plural) |
|
386 | + * @param string[] $map Array containing what variables it will find (e.g: domain, singular, plural) |
|
387 | 387 | * @return void |
388 | 388 | */ |
389 | 389 | protected function _parse($functionName, $map) |
@@ -99,7 +99,7 @@ |
||
99 | 99 | * Not Implemented |
100 | 100 | * |
101 | 101 | * @param \PHPUnit_Framework_Test $test The test to add warnings from. |
102 | - * @param \PHPUnit_Warning $e The warning |
|
102 | + * @param PHPUnit_Framework_Warning $e The warning |
|
103 | 103 | * @param float $time current time |
104 | 104 | * @return void |
105 | 105 | */ |