@@ -624,7 +624,7 @@ discard block |
||
624 | 624 | * Safely access the values in $this->params. |
625 | 625 | * |
626 | 626 | * @param string $name The name of the parameter to get. |
627 | - * @return string|bool|null Value. Will return null if it doesn't exist. |
|
627 | + * @return string|boolean Value. Will return null if it doesn't exist. |
|
628 | 628 | */ |
629 | 629 | public function param($name) |
630 | 630 | { |
@@ -641,7 +641,7 @@ discard block |
||
641 | 641 | * @param string $prompt Prompt text. |
642 | 642 | * @param string|array|null $options Array or string of options. |
643 | 643 | * @param string|null $default Default input value. |
644 | - * @return mixed Either the default value, or the user-provided input. |
|
644 | + * @return string|null Either the default value, or the user-provided input. |
|
645 | 645 | * @link https://book.cakephp.org/3.0/en/console-and-shells.html#Shell::in |
646 | 646 | */ |
647 | 647 | public function in($prompt, $options = null, $default = null) |
@@ -680,7 +680,7 @@ discard block |
||
680 | 680 | /** |
681 | 681 | * Output at the verbose level. |
682 | 682 | * |
683 | - * @param string|array $message A string or an array of strings to output |
|
683 | + * @param string $message A string or an array of strings to output |
|
684 | 684 | * @param int $newlines Number of newlines to append |
685 | 685 | * @return int|bool The number of bytes returned from writing to stdout. |
686 | 686 | */ |
@@ -976,7 +976,7 @@ discard block |
||
976 | 976 | * Stop execution of the current script. |
977 | 977 | * Raises a StopException to try and halt the execution. |
978 | 978 | * |
979 | - * @param int|string $status see https://secure.php.net/exit for values |
|
979 | + * @param integer $status see https://secure.php.net/exit for values |
|
980 | 980 | * @throws \Cake\Console\Exception\StopException |
981 | 981 | * @return void |
982 | 982 | */ |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | * set that Content-type in the response header. |
315 | 315 | * |
316 | 316 | * @param \Cake\Event\Event $event The Controller.beforeRender event. |
317 | - * @return bool false if the render process should be aborted |
|
317 | + * @return false|null false if the render process should be aborted |
|
318 | 318 | */ |
319 | 319 | public function beforeRender(Event $event) |
320 | 320 | { |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | * |
417 | 417 | * Returns true if the client accepts xml. |
418 | 418 | * |
419 | - * @param string|array|null $type Can be null (or no parameter), a string type name, or an |
|
419 | + * @param string $type Can be null (or no parameter), a string type name, or an |
|
420 | 420 | * array of types |
421 | 421 | * @return mixed If null or no parameter is passed, returns an array of content |
422 | 422 | * types the client accepts. If a string is passed, returns true |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | * |
501 | 501 | * @param string|array|null $type An optional array of 'friendly' content-type names, i.e. |
502 | 502 | * 'html', 'xml', 'js', etc. |
503 | - * @return mixed If $type is null or not provided, the first content-type in the |
|
503 | + * @return string If $type is null or not provided, the first content-type in the |
|
504 | 504 | * list, based on preference, is returned. If a single type is provided |
505 | 505 | * a boolean will be returned if that type is preferred. |
506 | 506 | * If an array of types are provided then the first preferred type is returned. |
@@ -618,7 +618,7 @@ discard block |
||
618 | 618 | * Sets the response header based on type map index name. This wraps several methods |
619 | 619 | * available on Cake\Http\Response. It also allows you to use Content-Type aliases. |
620 | 620 | * |
621 | - * @param string|array $type Friendly type name, i.e. 'html' or 'xml', or a full content-type, |
|
621 | + * @param string $type Friendly type name, i.e. 'html' or 'xml', or a full content-type, |
|
622 | 622 | * like 'application/x-shockwave'. |
623 | 623 | * @param array $options If $type is a friendly type name that is associated with |
624 | 624 | * more than one type of content, $index is used to select which content-type to use. |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Constructor |
43 | 43 | * |
44 | - * @param string|\Cake\Datasource\ConnectionInterface $connection Connection name to get the schema for or a connection instance |
|
44 | + * @param \Cake\Datasource\ConnectionInterface $connection Connection name to get the schema for or a connection instance |
|
45 | 45 | */ |
46 | 46 | public function __construct($connection) |
47 | 47 | { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * |
68 | 68 | * @param \Cake\Http\Client\Request $request The request object to send. |
69 | 69 | * @param array $options Array of options for the stream. |
70 | - * @return array Array of populated Response objects |
|
70 | + * @return Response[] Array of populated Response objects |
|
71 | 71 | */ |
72 | 72 | public function send(Request $request, array $options) |
73 | 73 | { |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | * Open the stream and send the request. |
239 | 239 | * |
240 | 240 | * @param \Cake\Http\Client\Request $request The request object. |
241 | - * @return array Array of populated Response objects |
|
241 | + * @return Response[] Array of populated Response objects |
|
242 | 242 | * @throws \Cake\Http\Exception\HttpException |
243 | 243 | */ |
244 | 244 | protected function _send(Request $request) |
@@ -393,7 +393,7 @@ |
||
393 | 393 | * Will accept either a Cake\Http\ServerRequest object or an array of arrays. Support for |
394 | 394 | * accepting arrays may be removed in the future. |
395 | 395 | * |
396 | - * @param \Cake\Http\ServerRequest|array $request Parameters and path information or a Cake\Http\ServerRequest object. |
|
396 | + * @param ServerRequest $request Parameters and path information or a Cake\Http\ServerRequest object. |
|
397 | 397 | * @return void |
398 | 398 | * @deprecatd 3.6.0 Support for arrays will be removed in 4.0.0 |
399 | 399 | */ |
@@ -54,7 +54,7 @@ |
||
54 | 54 | * @param string|null $algorithm Hashing algo to use (i.e. sha1, sha256 etc.). |
55 | 55 | * Can be any valid algo included in list returned by hash_algos(). |
56 | 56 | * If no value is passed the type specified by `Security::$hashType` is used. |
57 | - * @param mixed $salt If true, automatically prepends the application's salt |
|
57 | + * @param boolean $salt If true, automatically prepends the application's salt |
|
58 | 58 | * value to $string (Security.salt). |
59 | 59 | * @return string Hash |
60 | 60 | * @link https://book.cakephp.org/3.0/en/core-libraries/security.html#hashing-data |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * Commonly used like `list($namespace, $className) = namespaceSplit($class);`. |
111 | 111 | * |
112 | 112 | * @param string $class The full class name, ie `Cake\Core\App`. |
113 | - * @return array Array with 2 indexes. 0 => namespace, 1 => classname. |
|
113 | + * @return string[] Array with 2 indexes. 0 => namespace, 1 => classname. |
|
114 | 114 | */ |
115 | 115 | function namespaceSplit($class) |
116 | 116 | { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * |
134 | 134 | * This function returns the same variable that was passed. |
135 | 135 | * |
136 | - * @param mixed $var Variable to print out. |
|
136 | + * @param string $var Variable to print out. |
|
137 | 137 | * @return mixed the same $var that was passed to this function |
138 | 138 | * @link https://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#pr |
139 | 139 | * @see debug() |
@@ -444,7 +444,7 @@ |
||
444 | 444 | * Generates a safe key for use with cache engine storage engines. |
445 | 445 | * |
446 | 446 | * @param string $key the key passed over |
447 | - * @return mixed string $key or false |
|
447 | + * @return false|string string $key or false |
|
448 | 448 | */ |
449 | 449 | public function key($key) |
450 | 450 | { |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | * $query->distinct('name', true); |
393 | 393 | * ``` |
394 | 394 | * |
395 | - * @param array|\Cake\Database\ExpressionInterface|string|bool $on Enable/disable distinct class |
|
395 | + * @param boolean $on Enable/disable distinct class |
|
396 | 396 | * or list of fields to be filtered on |
397 | 397 | * @param bool $overwrite whether to reset fields with passed list or not |
398 | 398 | * @return $this |
@@ -1403,7 +1403,7 @@ discard block |
||
1403 | 1403 | * $query->limit($query->newExpr()->add(['1 + 1'])); // LIMIT (1 + 1) |
1404 | 1404 | * ``` |
1405 | 1405 | * |
1406 | - * @param int|\Cake\Database\ExpressionInterface $num number of records to be returned |
|
1406 | + * @param null|integer $num number of records to be returned |
|
1407 | 1407 | * @return $this |
1408 | 1408 | */ |
1409 | 1409 | public function limit($num) |
@@ -1501,7 +1501,7 @@ discard block |
||
1501 | 1501 | * |
1502 | 1502 | * `SELECT id, name FROM things d UNION ALL SELECT id, title FROM articles a` |
1503 | 1503 | * |
1504 | - * @param string|\Cake\Database\Query $query full SQL query to be used in UNION operator |
|
1504 | + * @param \Cake\ORM\Query $query full SQL query to be used in UNION operator |
|
1505 | 1505 | * @param bool $overwrite whether to reset the list of queries to be operated or not |
1506 | 1506 | * @return $this |
1507 | 1507 | */ |
@@ -1739,7 +1739,7 @@ discard block |
||
1739 | 1739 | * |
1740 | 1740 | * Epliog content is raw SQL and not suitable for use with user supplied data. |
1741 | 1741 | * |
1742 | - * @param string|\Cake\Database\Expression\QueryExpression|null $expression The expression to be appended |
|
1742 | + * @param string $expression The expression to be appended |
|
1743 | 1743 | * @return $this |
1744 | 1744 | */ |
1745 | 1745 | public function epilog($expression = null) |