@@ -38,7 +38,7 @@ |
||
38 | 38 | * @param array $data Array of data to operate on. |
39 | 39 | * @param string|array $path The path being searched for. Either a dot |
40 | 40 | * separated string, or an array of path segments. |
41 | - * @param mixed $default The return value when the path does not exist |
|
41 | + * @param boolean $default The return value when the path does not exist |
|
42 | 42 | * @throws \InvalidArgumentException |
43 | 43 | * @return mixed The value fetched from the array, or null. |
44 | 44 | * @link http://book.cakephp.org/3.0/en/core-libraries/hash.html#Hash::get |
@@ -54,7 +54,7 @@ |
||
54 | 54 | * @param string|null $type 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 http://book.cakephp.org/3.0/en/core-libraries/security.html#hashing-data |
@@ -91,7 +91,7 @@ |
||
91 | 91 | * Defaults to true for backwards compatibility reasons. |
92 | 92 | * - If using array as input, you can pass `options` from Xml::fromArray. |
93 | 93 | * |
94 | - * @param string|array $input XML string, a path to a file, a URL or an array |
|
94 | + * @param string $input XML string, a path to a file, a URL or an array |
|
95 | 95 | * @param string|array $options The options to use |
96 | 96 | * @return \SimpleXMLElement|\DOMDocument SimpleXMLElement or DOMDocument |
97 | 97 | * @throws \Cake\Utility\Exception\XmlException |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * Used to compare 2 numeric values. |
220 | 220 | * |
221 | - * @param string|array $check1 if string is passed for, a string must also be passed for $check2 |
|
221 | + * @param integer $check1 if string is passed for, a string must also be passed for $check2 |
|
222 | 222 | * used as an array it must be passed as ['check1' => value, 'operator' => 'value', 'check2' => value] |
223 | 223 | * @param string $operator Can be either a word or operand |
224 | 224 | * is greater >, is less <, greater or equal >= |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | * Validates time as 24hr (HH:MM) or am/pm ([H]H:MM[a|p]m) |
431 | 431 | * Does not allow/validate seconds. |
432 | 432 | * |
433 | - * @param string|\DateTime $check a valid time string/object |
|
433 | + * @param string $check a valid time string/object |
|
434 | 434 | * @return bool Success |
435 | 435 | */ |
436 | 436 | public static function time($check) |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | * option that allows you to set the specific Table class the form should be based on. |
328 | 328 | * - `idPrefix` Prefix for generated ID attributes. |
329 | 329 | * |
330 | - * @param mixed $model The context for which the form is being defined. Can |
|
330 | + * @param boolean $model The context for which the form is being defined. Can |
|
331 | 331 | * be an ORM entity, ORM resultset, or an array of meta data. You can use false or null |
332 | 332 | * to make a model-less form. |
333 | 333 | * @param array $options An array of html attributes and options. |
@@ -626,7 +626,7 @@ discard block |
||
626 | 626 | * or excluded as part of the unlockedFields. |
627 | 627 | * @param string|array $field Reference to field to be secured. Can be dot |
628 | 628 | * separated string to indicate nesting or array of fieldname parts. |
629 | - * @param mixed $value Field value, if value should not be tampered with. |
|
629 | + * @param string $value Field value, if value should not be tampered with. |
|
630 | 630 | * @return void |
631 | 631 | */ |
632 | 632 | protected function _secure($lock, $field, $value = null) |
@@ -1136,7 +1136,7 @@ discard block |
||
1136 | 1136 | * |
1137 | 1137 | * @param string $fieldName The name of the field to parse options for. |
1138 | 1138 | * @param array $options Options list. |
1139 | - * @return array Options |
|
1139 | + * @return string Options |
|
1140 | 1140 | */ |
1141 | 1141 | protected function _parseOptions($fieldName, $options) |
1142 | 1142 | { |
@@ -2468,7 +2468,7 @@ discard block |
||
2468 | 2468 | * If there is no active form null will be returned. |
2469 | 2469 | * |
2470 | 2470 | * @param \Cake\View\Form\ContextInterface|null $context Either the new context when setting, or null to get. |
2471 | - * @return null|\Cake\View\Form\ContextInterface The context for the form. |
|
2471 | + * @return ContextInterface The context for the form. |
|
2472 | 2472 | */ |
2473 | 2473 | public function context($context = null) |
2474 | 2474 | { |
@@ -2484,7 +2484,7 @@ discard block |
||
2484 | 2484 | * If no type can be matched a NullContext will be returned. |
2485 | 2485 | * |
2486 | 2486 | * @param mixed $data The data to get a context provider for. |
2487 | - * @return mixed Context provider. |
|
2487 | + * @return ContextInterface Context provider. |
|
2488 | 2488 | * @throws \RuntimeException when the context class does not implement the |
2489 | 2489 | * ContextInterface. |
2490 | 2490 | */ |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | * |
508 | 508 | * @param string|array $url String or array of javascript files to include |
509 | 509 | * @param array $options Array of options, and html attributes see above. |
510 | - * @return mixed String of `<script />` tags or null if block is specified in options |
|
510 | + * @return string|null String of `<script />` tags or null if block is specified in options |
|
511 | 511 | * or if $once is true and the file has been included before. |
512 | 512 | * @link http://book.cakephp.org/3.0/en/views/helpers/html.html#linking-to-javascript-files |
513 | 513 | */ |
@@ -562,7 +562,7 @@ discard block |
||
562 | 562 | * @param string $script The script to wrap |
563 | 563 | * @param array $options The options to use. Options not listed above will be |
564 | 564 | * treated as HTML attributes. |
565 | - * @return mixed string or null depending on the value of `$options['block']` |
|
565 | + * @return string|null string or null depending on the value of `$options['block']` |
|
566 | 566 | * @link http://book.cakephp.org/3.0/en/views/helpers/html.html#creating-inline-javascript-blocks |
567 | 567 | */ |
568 | 568 | public function scriptBlock($script, array $options = []) |
@@ -614,7 +614,7 @@ discard block |
||
614 | 614 | * Generates a script tag inline or appends to specified view block depending on |
615 | 615 | * the settings used when the scriptBlock was started |
616 | 616 | * |
617 | - * @return mixed depending on the settings of scriptStart() either a script tag or null |
|
617 | + * @return string|null depending on the settings of scriptStart() either a script tag or null |
|
618 | 618 | * @link http://book.cakephp.org/3.0/en/views/helpers/html.html#creating-javascript-blocks |
619 | 619 | */ |
620 | 620 | public function scriptEnd() |
@@ -89,7 +89,7 @@ |
||
89 | 89 | * |
90 | 90 | * @param float $number A floating point number. |
91 | 91 | * @param int $precision The precision of the returned number. |
92 | - * @return float Formatted float. |
|
92 | + * @return string Formatted float. |
|
93 | 93 | * @see \Cake\I18n\Number::precision() |
94 | 94 | * @link http://book.cakephp.org/3.0/en/views/helpers/number.html#formatting-floating-point-numbers |
95 | 95 | */ |
@@ -448,7 +448,7 @@ |
||
448 | 448 | * @param array $options Pagination/URL options array |
449 | 449 | * @param string|null $model Which model to paginate on |
450 | 450 | * @param bool $full If true, the full base URL will be prepended to the result |
451 | - * @return mixed By default, returns a full pagination URL string for use in non-standard contexts (i.e. JavaScript) |
|
451 | + * @return string By default, returns a full pagination URL string for use in non-standard contexts (i.e. JavaScript) |
|
452 | 452 | * @link http://book.cakephp.org/3.0/en/views/helpers/paginator.html#generating-pagination-urls |
453 | 453 | */ |
454 | 454 | public function generateUrl(array $options = [], $model = null, $full = false) |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | * |
172 | 172 | * @param int|string|\DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime object |
173 | 173 | * @param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZone object |
174 | - * @return int Unix timestamp |
|
174 | + * @return string Unix timestamp |
|
175 | 175 | * @see \Cake\I18n\Time::toUnix() |
176 | 176 | */ |
177 | 177 | public function toUnix($dateString, $timezone = null) |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | * Returns gmt as a UNIX timestamp. |
289 | 289 | * |
290 | 290 | * @param int|string|\DateTime|null $string UNIX timestamp, strtotime() valid string or DateTime object |
291 | - * @return int UNIX timestamp |
|
291 | + * @return string UNIX timestamp |
|
292 | 292 | * @see \Cake\I18n\Time::gmt() |
293 | 293 | */ |
294 | 294 | public function gmt($string = null) |