@@ -78,7 +78,7 @@ |
||
| 78 | 78 | * Execution method always used for tasks |
| 79 | 79 | * |
| 80 | 80 | * @param string|null $name The name of the table to bake. |
| 81 | - * @return void |
|
| 81 | + * @return boolean|null |
|
| 82 | 82 | */ |
| 83 | 83 | public function main($name = null) |
| 84 | 84 | { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * Execution method always used for tasks |
| 59 | 59 | * |
| 60 | 60 | * @param string|null $name The name of the plugin to bake. |
| 61 | - * @return void |
|
| 61 | + * @return false|null |
|
| 62 | 62 | */ |
| 63 | 63 | public function main($name = null) |
| 64 | 64 | { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * Also update the autoloader and the root composer.json file if it can be found |
| 86 | 86 | * |
| 87 | 87 | * @param string $plugin Name of the plugin in CamelCased format |
| 88 | - * @return bool |
|
| 88 | + * @return null|boolean |
|
| 89 | 89 | */ |
| 90 | 90 | public function bake($plugin) |
| 91 | 91 | { |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | * Search the $PATH for composer. |
| 361 | 361 | * |
| 362 | 362 | * @param array $path The paths to search. |
| 363 | - * @return string|bool |
|
| 363 | + * @return string|false |
|
| 364 | 364 | */ |
| 365 | 365 | protected function _searchPath($path) |
| 366 | 366 | { |
@@ -516,7 +516,7 @@ |
||
| 516 | 516 | * |
| 517 | 517 | * @param string $type The Type of object you are generating tests for eg. controller |
| 518 | 518 | * @param string $fullClassName The Classname of the class the test is being generated for. |
| 519 | - * @return array An array containing used classes |
|
| 519 | + * @return string[] An array containing used classes |
|
| 520 | 520 | */ |
| 521 | 521 | public function generateUses($type, $fullClassName) |
| 522 | 522 | { |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * |
| 106 | 106 | * @param string|null $view Name of view file to use, or a template string to render |
| 107 | 107 | * @param string|null $layout Layout to use. Not used, for consistency with other views only |
| 108 | - * @return string|null Rendered content. |
|
| 108 | + * @return string Rendered content. |
|
| 109 | 109 | * @throws \Cake\Core\Exception\Exception If there is an error in the view. |
| 110 | 110 | */ |
| 111 | 111 | public function render($view = null, $layout = null) |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | * Use the Bake prefix for bake related view events |
| 134 | 134 | * |
| 135 | 135 | * @param string $name Name of the event. |
| 136 | - * @param array|null $data Any value you wish to be transported with this event to |
|
| 136 | + * @param string[] $data Any value you wish to be transported with this event to |
|
| 137 | 137 | * it can be read by listeners. |
| 138 | 138 | * |
| 139 | 139 | * @param object|null $subject The object that this event applies to |
@@ -190,7 +190,7 @@ |
||
| 190 | 190 | * systems like basic and digest auth. |
| 191 | 191 | * |
| 192 | 192 | * @param \Cake\Network\Request $request Request object. |
| 193 | - * @return mixed Either false or an array of user information |
|
| 193 | + * @return boolean Either false or an array of user information |
|
| 194 | 194 | */ |
| 195 | 195 | public function getUser(Request $request) |
| 196 | 196 | { |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | * Generates a safe key for use with cache engine storage engines. |
| 219 | 219 | * |
| 220 | 220 | * @param string $key the key passed over |
| 221 | - * @return bool|string string key or false |
|
| 221 | + * @return false|string string key or false |
|
| 222 | 222 | */ |
| 223 | 223 | public function key($key) |
| 224 | 224 | { |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | * Generates a safe key, taking account of the configured key prefix |
| 240 | 240 | * |
| 241 | 241 | * @param string $key the key passed over |
| 242 | - * @return mixed string $key or false |
|
| 242 | + * @return string string $key or false |
|
| 243 | 243 | * @throws \InvalidArgumentException If key's value is empty |
| 244 | 244 | */ |
| 245 | 245 | protected function _key($key) |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | * |
| 162 | 162 | * @param string $key Identifier for the data |
| 163 | 163 | * @param int $offset How much to increment |
| 164 | - * @return bool|int New incremented value, false otherwise |
|
| 164 | + * @return integer New incremented value, false otherwise |
|
| 165 | 165 | */ |
| 166 | 166 | public function increment($key, $offset = 1) |
| 167 | 167 | { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * |
| 176 | 176 | * @param string $key Identifier for the data |
| 177 | 177 | * @param int $offset How much to subtract |
| 178 | - * @return bool|int New decremented value, false otherwise |
|
| 178 | + * @return integer New decremented value, false otherwise |
|
| 179 | 179 | */ |
| 180 | 180 | public function decrement($key, $offset = 1) |
| 181 | 181 | { |
@@ -136,6 +136,7 @@ discard block |
||
| 136 | 136 | /** |
| 137 | 137 | * {@inheritDoc} |
| 138 | 138 | * |
| 139 | + * @param \Cake\ORM\Query $zero |
|
| 139 | 140 | */ |
| 140 | 141 | public function reduce(callable $c, $zero = null) |
| 141 | 142 | { |
@@ -204,6 +205,7 @@ discard block |
||
| 204 | 205 | /** |
| 205 | 206 | * {@inheritDoc} |
| 206 | 207 | * |
| 208 | + * @param \Closure $callback |
|
| 207 | 209 | */ |
| 208 | 210 | public function groupBy($callback) |
| 209 | 211 | { |
@@ -218,6 +220,7 @@ discard block |
||
| 218 | 220 | /** |
| 219 | 221 | * {@inheritDoc} |
| 220 | 222 | * |
| 223 | + * @param string $callback |
|
| 221 | 224 | */ |
| 222 | 225 | public function indexBy($callback) |
| 223 | 226 | { |
@@ -368,6 +371,9 @@ discard block |
||
| 368 | 371 | /** |
| 369 | 372 | * {@inheritDoc} |
| 370 | 373 | * |
| 374 | + * @param string $keyPath |
|
| 375 | + * @param string $valuePath |
|
| 376 | + * @param string $groupPath |
|
| 371 | 377 | */ |
| 372 | 378 | public function combine($keyPath, $valuePath, $groupPath = null) |
| 373 | 379 | { |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | * Creates the iterator that will generate child iterators from each of the |
| 48 | 48 | * elements it was constructed with. |
| 49 | 49 | * |
| 50 | - * @param array|\Traversable $items The list of values to iterate |
|
| 50 | + * @param \Cake\Collection\CollectionTrait $items The list of values to iterate |
|
| 51 | 51 | * @param callable $unfolder A callable function that will receive the |
| 52 | 52 | * current item and key. It must return an array or Traversable object |
| 53 | 53 | * out of which the nested iterators will be yielded. |