@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | * |
132 | 132 | * @param string|null $path Path to folder |
133 | 133 | * @param bool $create Create folder if not found |
134 | - * @param int|false $mode Mode (CHMOD) to apply to created folder, false to ignore |
|
134 | + * @param integer $mode Mode (CHMOD) to apply to created folder, false to ignore |
|
135 | 135 | */ |
136 | 136 | public function __construct($path = null, $create = false, $mode = false) |
137 | 137 | { |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | * Change directory to $path. |
168 | 168 | * |
169 | 169 | * @param string $path Path to the directory to change to |
170 | - * @return string|bool The new path. Returns false on failure |
|
170 | + * @return string|false The new path. Returns false on failure |
|
171 | 171 | */ |
172 | 172 | public function cd($path) |
173 | 173 | { |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * |
186 | 186 | * @param string|bool $sort Whether you want the results sorted, set this and the sort property |
187 | 187 | * to false to get unsorted results. |
188 | - * @param array|bool $exceptions Either an array or boolean true will not grab dot files |
|
188 | + * @param boolean $exceptions Either an array or boolean true will not grab dot files |
|
189 | 189 | * @param bool $fullPath True returns the full path |
190 | 190 | * @return array Contents of current directory as an array, an empty array on failure |
191 | 191 | */ |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | * |
254 | 254 | * @param string $regexpPattern Preg_match pattern (Defaults to: .*) |
255 | 255 | * @param bool $sort Whether results should be sorted. |
256 | - * @return array Files that match given pattern |
|
256 | + * @return string[] Files that match given pattern |
|
257 | 257 | */ |
258 | 258 | public function find($regexpPattern = '.*', $sort = false) |
259 | 259 | { |
@@ -536,7 +536,7 @@ discard block |
||
536 | 536 | * Returns an array of nested directories and files in each directory |
537 | 537 | * |
538 | 538 | * @param string|null $path the directory path to build the tree from |
539 | - * @param array|bool $exceptions Either an array of files/folder to exclude |
|
539 | + * @param boolean $exceptions Either an array of files/folder to exclude |
|
540 | 540 | * or boolean true to not grab dot files/folders |
541 | 541 | * @param string|null $type either 'file' or 'dir'. Null returns both files and directories |
542 | 542 | * @return array Array of nested directories and files in each directory |
@@ -133,7 +133,7 @@ |
||
133 | 133 | * or a file handle. |
134 | 134 | * |
135 | 135 | * @param string $name The name to use. |
136 | - * @param mixed $value Either a string filename, or a filehandle. |
|
136 | + * @param resource $value Either a string filename, or a filehandle. |
|
137 | 137 | * @return \Cake\Http\Client\FormDataPart |
138 | 138 | */ |
139 | 139 | public function addFile($name, $value) |
@@ -843,7 +843,7 @@ discard block |
||
843 | 843 | * if $content is null the current buffer is returned |
844 | 844 | * |
845 | 845 | * @param string|callable|null $content the string or callable message to be sent |
846 | - * @return string|null Current message buffer if $content param is passed as null |
|
846 | + * @return null|callable Current message buffer if $content param is passed as null |
|
847 | 847 | * @deprecated 3.4.0 Mutable response methods are deprecated. Use `withBody()`/`withStringBody()` and `getBody()` instead. |
848 | 848 | */ |
849 | 849 | public function body($content = null) |
@@ -1577,7 +1577,7 @@ discard block |
||
1577 | 1577 | * `$response->expires(new DateTime('+1 day'))` Will set the expiration in next 24 hours |
1578 | 1578 | * `$response->expires()` Will return the current expiration header value |
1579 | 1579 | * |
1580 | - * @param string|\DateTime|null $time Valid time string or \DateTime instance. |
|
1580 | + * @param integer $time Valid time string or \DateTime instance. |
|
1581 | 1581 | * @return string|null |
1582 | 1582 | * @deprecated 3.4.0 Use withExpires() instead. |
1583 | 1583 | */ |
@@ -1613,7 +1613,7 @@ discard block |
||
1613 | 1613 | * $response->withExpires(new DateTime('+1 day')) |
1614 | 1614 | * ``` |
1615 | 1615 | * |
1616 | - * @param string|\DateTime $time Valid time string or \DateTime instance. |
|
1616 | + * @param integer $time Valid time string or \DateTime instance. |
|
1617 | 1617 | * @return static |
1618 | 1618 | */ |
1619 | 1619 | public function withExpires($time) |
@@ -1633,7 +1633,7 @@ discard block |
||
1633 | 1633 | * `$response->modified(new DateTime('+1 day'))` Will set the modification date in the past 24 hours |
1634 | 1634 | * `$response->modified()` Will return the current Last-Modified header value |
1635 | 1635 | * |
1636 | - * @param string|\DateTime|null $time Valid time string or \DateTime instance. |
|
1636 | + * @param string $time Valid time string or \DateTime instance. |
|
1637 | 1637 | * @return string|null |
1638 | 1638 | * @deprecated 3.4.0 Use withModified() instead. |
1639 | 1639 | */ |
@@ -2769,7 +2769,7 @@ discard block |
||
2769 | 2769 | * Stop execution of the current script. Wraps exit() making |
2770 | 2770 | * testing easier. |
2771 | 2771 | * |
2772 | - * @param int|string $status See https://secure.php.net/exit for values |
|
2772 | + * @param integer $status See https://secure.php.net/exit for values |
|
2773 | 2773 | * @return void |
2774 | 2774 | * @deprecated 3.4.0 Will be removed in 4.0.0 |
2775 | 2775 | */ |
@@ -626,7 +626,7 @@ discard block |
||
626 | 626 | * |
627 | 627 | * @param string $name The method called |
628 | 628 | * @param array $params Array of parameters for the method call |
629 | - * @return mixed |
|
629 | + * @return boolean |
|
630 | 630 | * @throws \BadMethodCallException when an invalid method is called. |
631 | 631 | */ |
632 | 632 | public function __call($name, $params) |
@@ -2170,7 +2170,7 @@ discard block |
||
2170 | 2170 | * Get the uploaded file from a dotted path. |
2171 | 2171 | * |
2172 | 2172 | * @param string $path The dot separated path to the file you want. |
2173 | - * @return null|\Psr\Http\Message\UploadedFileInterface |
|
2173 | + * @return null|UploadedFile |
|
2174 | 2174 | */ |
2175 | 2175 | public function getUploadedFile($path) |
2176 | 2176 | { |
@@ -490,6 +490,7 @@ discard block |
||
490 | 490 | |
491 | 491 | /** |
492 | 492 | * {@inheritDoc} |
493 | + * @param Query $query |
|
493 | 494 | */ |
494 | 495 | protected function _appendNotMatching($query, $options) |
495 | 496 | { |
@@ -1025,7 +1026,7 @@ discard block |
||
1025 | 1026 | * Any string expressions, or expression objects will |
1026 | 1027 | * also be returned in this list. |
1027 | 1028 | * |
1028 | - * @return mixed Generally an array. If the conditions |
|
1029 | + * @return callable Generally an array. If the conditions |
|
1029 | 1030 | * are not an array, the association conditions will be |
1030 | 1031 | * returned unmodified. |
1031 | 1032 | */ |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * Constructor. |
38 | 38 | * |
39 | 39 | * @param \Cake\Datasource\EntityInterface $entity The entity on which the persistence operation failed |
40 | - * @param string|array $message Either the string of the error message, or an array of attributes |
|
40 | + * @param string[] $message Either the string of the error message, or an array of attributes |
|
41 | 41 | * that are made available in the view, and sprintf()'d into Exception::$_messageTemplate |
42 | 42 | * @param int $code The code of the error, is also the HTTP status code for the error. |
43 | 43 | * @param \Exception|null $previous the previous exception. |
@@ -414,11 +414,11 @@ |
||
414 | 414 | * previous list will be emptied. |
415 | 415 | * |
416 | 416 | * @param array|string|null $associations List of table aliases to be queried. |
417 | - * @param callable|bool $override The query builder for the association, or |
|
417 | + * @param boolean $override The query builder for the association, or |
|
418 | 418 | * if associations is an array, a bool on whether to override previous list |
419 | 419 | * with the one passed |
420 | 420 | * defaults to merging previous list with the new one. |
421 | - * @return array|$this |
|
421 | + * @return Table |
|
422 | 422 | */ |
423 | 423 | public function contain($associations = null, $override = false) |
424 | 424 | { |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | * |
307 | 307 | * @param \Cake\View\Widget\WidgetRegistry|null $instance The registry instance to set. |
308 | 308 | * @param array $widgets An array of widgets |
309 | - * @return \Cake\View\Widget\WidgetRegistry |
|
309 | + * @return WidgetLocator |
|
310 | 310 | * @deprecated 3.6.0 Use FormHelper::widgetLocator() instead. |
311 | 311 | */ |
312 | 312 | public function widgetRegistry(WidgetRegistry $instance = null, $widgets = []) |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | * - `valueSources` The sources that values should be read from. See FormHelper::setValueSources() |
392 | 392 | * - `templateVars` Provide template variables for the formStart template. |
393 | 393 | * |
394 | - * @param mixed $context The context for which the form is being defined. |
|
394 | + * @param false|null $context The context for which the form is being defined. |
|
395 | 395 | * Can be a ContextInterface instance, ORM entity, ORM resultset, or an |
396 | 396 | * array of meta data. You can use false or null to make a context-less form. |
397 | 397 | * @param array $options An array of html attributes and options. |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | * or excluded as part of the unlockedFields. |
717 | 717 | * @param string|array $field Reference to field to be secured. Can be dot |
718 | 718 | * separated string to indicate nesting or array of fieldname parts. |
719 | - * @param mixed $value Field value, if value should not be tampered with. |
|
719 | + * @param string $value Field value, if value should not be tampered with. |
|
720 | 720 | * @return void |
721 | 721 | */ |
722 | 722 | protected function _secure($lock, $field, $value = null) |
@@ -1331,7 +1331,7 @@ discard block |
||
1331 | 1331 | * |
1332 | 1332 | * @param string $fieldName The name of the field to parse options for. |
1333 | 1333 | * @param array $options Options list. |
1334 | - * @return array Options |
|
1334 | + * @return string Options |
|
1335 | 1335 | */ |
1336 | 1336 | protected function _parseOptions($fieldName, $options) |
1337 | 1337 | { |
@@ -227,9 +227,9 @@ |
||
227 | 227 | * - `block` - Set to true to append output to view block "meta" or provide |
228 | 228 | * custom block name. |
229 | 229 | * |
230 | - * @param string|array $type The title of the external resource, Or an array of attributes for a |
|
230 | + * @param string $type The title of the external resource, Or an array of attributes for a |
|
231 | 231 | * custom meta tag. |
232 | - * @param string|array|null $content The address of the external resource or string for content attribute |
|
232 | + * @param string $content The address of the external resource or string for content attribute |
|
233 | 233 | * @param array $options Other attributes for the generated tag. If the type attribute is html, |
234 | 234 | * rss, atom, or icon, the mime-type is returned. |
235 | 235 | * @return string|null A completed `<link />` element, or null if the element was sent to a block. |