@@ -178,7 +178,7 @@ |
||
| 178 | 178 | * |
| 179 | 179 | * @param string $string Input string in UTF-8 |
| 180 | 180 | * @param string $trimChars Characters to trim off |
| 181 | - * @return trimmed string |
|
| 181 | + * @return string string |
|
| 182 | 182 | */ |
| 183 | 183 | protected function _mbTrim($string, $trimChars = '\s') |
| 184 | 184 | { |
@@ -200,7 +200,7 @@ |
||
| 200 | 200 | /** |
| 201 | 201 | * Generates a new connection to DB. |
| 202 | 202 | * |
| 203 | - * @return \Cake\Database\Connection|bool A connection object, or false on |
|
| 203 | + * @return Connection A connection object, or false on |
|
| 204 | 204 | * failure. On failure error messages are automatically set |
| 205 | 205 | */ |
| 206 | 206 | public function getConn() |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | * operator. |
| 323 | 323 | * |
| 324 | 324 | * @param \Cake\ORM\Query $query The query to be scope |
| 325 | - * @param \Search\TokenInterface $token Token describing an operator. e.g |
|
| 325 | + * @param TokenInterface $token Token describing an operator. e.g |
|
| 326 | 326 | * `-op_name:op_value` |
| 327 | 327 | * @return \Cake\ORM\Query Scoped query |
| 328 | 328 | */ |
@@ -363,7 +363,7 @@ discard block |
||
| 363 | 363 | * handling an operator named either `author-name` or `author_name`. |
| 364 | 364 | * |
| 365 | 365 | * @param \Cake\ORM\Query $query The query that is expected to be scoped |
| 366 | - * @param \Search\TokenInterface $token Token describing an operator. e.g |
|
| 366 | + * @param TokenInterface $token Token describing an operator. e.g |
|
| 367 | 367 | * `-op_name:op_value` |
| 368 | 368 | * @return mixed Scoped query object expected or null if event was not captured |
| 369 | 369 | * by any listener |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | * |
| 83 | 83 | * The above array is equivalent to: `PluginName/Admin/Users/index` |
| 84 | 84 | * |
| 85 | - * @param string|array $ref ACO path as described above |
|
| 85 | + * @param string $ref ACO path as described above |
|
| 86 | 86 | * @return \Cake\ORM\Query|bool False if not found or query result if found |
| 87 | 87 | */ |
| 88 | 88 | public function node($ref) |
@@ -373,7 +373,7 @@ |
||
| 373 | 373 | * |
| 374 | 374 | * @param string $aco An ACO path to parse |
| 375 | 375 | * @param bool $string Indicates if it should return a string format path (/Controller/action) |
| 376 | - * @return bool|array|string An array as described above or false if an invalid $aco was given |
|
| 376 | + * @return string An array as described above or false if an invalid $aco was given |
|
| 377 | 377 | */ |
| 378 | 378 | protected function _parseAco($aco, $string = true) |
| 379 | 379 | { |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | * Returns a list of all registered event listeners within the provided event |
| 416 | 416 | * manager, or within the global manager if not provided. |
| 417 | 417 | * |
| 418 | - * @param \Cake\Event\EventManager\null $manager Event manager instance, or null |
|
| 418 | + * @param EventManager $manager Event manager instance, or null |
|
| 419 | 419 | * to use global manager instance. |
| 420 | 420 | * @return array |
| 421 | 421 | */ |
@@ -509,7 +509,7 @@ discard block |
||
| 509 | 509 | * |
| 510 | 510 | * @param string $localeId Locale code. e.g. "en_NZ" (or "en-NZ") for |
| 511 | 511 | * "English New Zealand" |
| 512 | - * @return array Array with 2 indexes. 0 => language code, 1 => country code. |
|
| 512 | + * @return string[] Array with 2 indexes. 0 => language code, 1 => country code. |
|
| 513 | 513 | */ |
| 514 | 514 | function localeSplit($localeId) |
| 515 | 515 | { |
@@ -631,7 +631,7 @@ discard block |
||
| 631 | 631 | * // out: aAABBBCCC |
| 632 | 632 | * ``` |
| 633 | 633 | * |
| 634 | - * @param string|array $search The value being searched for |
|
| 634 | + * @param string|null $search The value being searched for |
|
| 635 | 635 | * @param string $replace The replacement value that replaces found search value |
| 636 | 636 | * @param string $subject The string being searched and replaced on |
| 637 | 637 | * @return string A string with the replaced value |
@@ -663,7 +663,7 @@ discard block |
||
| 663 | 663 | * // out: AAaBBBCCC |
| 664 | 664 | * ``` |
| 665 | 665 | * |
| 666 | - * @param string|array $search The value being searched for |
|
| 666 | + * @param string $search The value being searched for |
|
| 667 | 667 | * @param string $replace The replacement value that replaces found search value |
| 668 | 668 | * @param string $subject The string being searched and replaced on |
| 669 | 669 | * @return string A string with the replaced value |
@@ -621,7 +621,7 @@ |
||
| 621 | 621 | * Prepares entity's cache-columns (those defined using `cache` option). |
| 622 | 622 | * |
| 623 | 623 | * @param \Cake\Datasource\EntityInterface $entity The entity to prepare |
| 624 | - * @return \Cake\Datasource\EntityInterfa Modified entity |
|
| 624 | + * @return EntityInterface Modified entity |
|
| 625 | 625 | */ |
| 626 | 626 | protected function _prepareCachedColumns(EntityInterface $entity) |
| 627 | 627 | { |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | * @param array $options Options given as an array |
| 118 | 118 | * @param bool $primary Whether this event was triggered as part of a primary |
| 119 | 119 | * find query or not |
| 120 | - * @return mixed |
|
| 120 | + * @return boolean |
|
| 121 | 121 | */ |
| 122 | 122 | public function beforeFind(Field $field, array $options, $primary) |
| 123 | 123 | { |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | /** |
| 88 | 88 | * Removes "remember me" cookie. |
| 89 | 89 | * |
| 90 | - * @param array $event User information given as an array |
|
| 90 | + * @param Event $event User information given as an array |
|
| 91 | 91 | * @return void |
| 92 | 92 | */ |
| 93 | 93 | public function logout(Event $event, array $user) |