@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * |
| 41 | 41 | * @param array $fields The list of fields to check for uniqueness. |
| 42 | 42 | * @param string $message The error message to show in case the rule does not pass. |
| 43 | - * @return callable |
|
| 43 | + * @return \Closure |
|
| 44 | 44 | */ |
| 45 | 45 | public function isUnique(array $fields, $message = null) |
| 46 | 46 | { |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * primary key lookup in the other table. |
| 75 | 75 | * @param object|string $table The table name where the fields existence will be checked. |
| 76 | 76 | * @param string $message The error message to show in case the rule does not pass. |
| 77 | - * @return callable |
|
| 77 | + * @return \Closure |
|
| 78 | 78 | */ |
| 79 | 79 | public function existsIn($field, $table, $message = null) |
| 80 | 80 | { |
@@ -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 | */ |
@@ -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 | */ |
@@ -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) |