@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | * validation set, or an associative array, where key is the name of the |
238 | 238 | * validation set and value the Validator instance. |
239 | 239 | * |
240 | - * @param array $config List of options for this table |
|
240 | + * @param boolean $config List of options for this table |
|
241 | 241 | */ |
242 | 242 | public function __construct(array $config = []) |
243 | 243 | { |
@@ -1091,7 +1091,7 @@ discard block |
||
1091 | 1091 | * composite keys when comparing values. |
1092 | 1092 | * |
1093 | 1093 | * @param array $options the original options passed to a finder |
1094 | - * @param array $keys the keys to check in $options to build matchers from |
|
1094 | + * @param string[] $keys the keys to check in $options to build matchers from |
|
1095 | 1095 | * the associated value |
1096 | 1096 | * @return array |
1097 | 1097 | */ |
@@ -1762,7 +1762,7 @@ discard block |
||
1762 | 1762 | * |
1763 | 1763 | * @param string $method The method name that was fired. |
1764 | 1764 | * @param array $args List of arguments passed to the function. |
1765 | - * @return mixed |
|
1765 | + * @return Query |
|
1766 | 1766 | * @throws \BadMethodCallException when there are missing arguments, or when |
1767 | 1767 | * and & or are combined. |
1768 | 1768 | */ |
@@ -49,7 +49,7 @@ |
||
49 | 49 | * @param array $context An array of the current request context. |
50 | 50 | * Contains information such as the current host, scheme, port, and base |
51 | 51 | * directory. |
52 | - * @return mixed either false or a string URL. |
|
52 | + * @return false|string either false or a string URL. |
|
53 | 53 | */ |
54 | 54 | public function match(array $url, array $context = []) |
55 | 55 | { |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * Modifies defaults property so all necessary keys are set |
143 | 143 | * and populates $this->names with the named routing elements. |
144 | 144 | * |
145 | - * @return array Returns a string regular expression of the compiled route. |
|
145 | + * @return string Returns a string regular expression of the compiled route. |
|
146 | 146 | */ |
147 | 147 | public function compile() |
148 | 148 | { |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | * @param array $context An array of the current request context. |
407 | 407 | * Contains information such as the current host, scheme, port, base |
408 | 408 | * directory and other url params. |
409 | - * @return mixed Either a string url for the parameters if they match or false. |
|
409 | + * @return false|string Either a string url for the parameters if they match or false. |
|
410 | 410 | */ |
411 | 411 | public function match(array $url, array $context = []) |
412 | 412 | { |
@@ -383,7 +383,7 @@ |
||
383 | 383 | * Parse tokens |
384 | 384 | * |
385 | 385 | * @param string $functionName Function name that indicates translatable string (e.g: '__') |
386 | - * @param array $map Array containing what variables it will find (e.g: domain, singular, plural) |
|
386 | + * @param string[] $map Array containing what variables it will find (e.g: domain, singular, plural) |
|
387 | 387 | * @return void |
388 | 388 | */ |
389 | 389 | protected function _parse($functionName, $map) |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | * a property. You can use various assert methods to check the |
178 | 178 | * response. |
179 | 179 | * |
180 | - * @param string|array $url The URL to request. |
|
180 | + * @param string $url The URL to request. |
|
181 | 181 | * @return void |
182 | 182 | */ |
183 | 183 | public function get($url) |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * a property. You can use various assert methods to check the |
193 | 193 | * response. |
194 | 194 | * |
195 | - * @param string|array $url The URL to request. |
|
195 | + * @param string $url The URL to request. |
|
196 | 196 | * @param array $data The data for the request. |
197 | 197 | * @return void |
198 | 198 | */ |
@@ -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 |
@@ -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 | */ |
@@ -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 | */ |