@@ -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) |
@@ -432,7 +432,7 @@ |
||
432 | 432 | * Generates a safe key for use with cache engine storage engines. |
433 | 433 | * |
434 | 434 | * @param string $key the key passed over |
435 | - * @return mixed string $key or false |
|
435 | + * @return string|boolean string $key or false |
|
436 | 436 | */ |
437 | 437 | public function key($key) |
438 | 438 | { |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | * |
350 | 350 | * @param string $key Identifier for the data |
351 | 351 | * @param int $offset How much to increment |
352 | - * @return bool|int New incremented value, false otherwise |
|
352 | + * @return integer New incremented value, false otherwise |
|
353 | 353 | */ |
354 | 354 | public function increment($key, $offset = 1) |
355 | 355 | { |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | * |
364 | 364 | * @param string $key Identifier for the data |
365 | 365 | * @param int $offset How much to subtract |
366 | - * @return bool|int New decremented value, false otherwise |
|
366 | + * @return integer New decremented value, false otherwise |
|
367 | 367 | */ |
368 | 368 | public function decrement($key, $offset = 1) |
369 | 369 | { |
@@ -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 | { |
@@ -117,7 +117,7 @@ |
||
117 | 117 | * @param array $conditions A key-value list of conditions to match where the |
118 | 118 | * key is the property path to get from the current item and the value is the |
119 | 119 | * value to be compared the item with. |
120 | - * @return callable |
|
120 | + * @return \Closure |
|
121 | 121 | */ |
122 | 122 | protected function _createMatcherFilter(array $conditions) |
123 | 123 | { |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * in the current iteration, the key of the element and the passed $items iterator |
49 | 49 | * as arguments, in that order. |
50 | 50 | * |
51 | - * @param array|\Traversable $items The list of values to iterate |
|
51 | + * @param \Cake\Collection\CollectionTrait $items The list of values to iterate |
|
52 | 52 | * @param callable $condition A function that will be called for each item in |
53 | 53 | * the collection, if the result evaluates to false, no more items will be |
54 | 54 | * yielded from this iterator. |
@@ -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. |