@@ -290,7 +290,7 @@ |
||
290 | 290 | * Returns the value of an original property by name |
291 | 291 | * |
292 | 292 | * @param string $property the name of the property for which original value is retrieved. |
293 | - * @return mixed |
|
293 | + * @return string |
|
294 | 294 | * @throws \InvalidArgumentException if an empty property name is passed. |
295 | 295 | */ |
296 | 296 | public function getOriginal($property) |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * |
165 | 165 | * @param false|string|\Closure $key Either the cache key or a function to generate the cache key. |
166 | 166 | * When using a function, this query instance will be supplied as an argument. |
167 | - * @param string|\Cake\Cache\CacheEngine $config Either the name of the cache config to use, or |
|
167 | + * @param string $config Either the name of the cache config to use, or |
|
168 | 168 | * a cache config instance. |
169 | 169 | * @return $this This instance |
170 | 170 | */ |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | * ``` |
301 | 301 | * |
302 | 302 | * @param callable|null $formatter The formatting callable. |
303 | - * @param bool|int $mode Whether or not to overwrite, append or prepend the formatter. |
|
303 | + * @param integer $mode Whether or not to overwrite, append or prepend the formatter. |
|
304 | 304 | * @return $this|array |
305 | 305 | */ |
306 | 306 | public function formatResults(callable $formatter = null, $mode = 0) |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | * |
373 | 373 | * @see \Cake\ORM\Query::applyOptions() to read about the options that will |
374 | 374 | * be processed by this class and not returned by this function |
375 | - * @return array |
|
375 | + * @return string |
|
376 | 376 | */ |
377 | 377 | public function getOptions() |
378 | 378 | { |
@@ -14,8 +14,6 @@ |
||
14 | 14 | */ |
15 | 15 | namespace Cake\Datasource; |
16 | 16 | |
17 | -use ArrayObject; |
|
18 | -use BadMethodCallException; |
|
19 | 17 | use InvalidArgumentException; |
20 | 18 | |
21 | 19 | /** |
@@ -105,7 +105,7 @@ |
||
105 | 105 | * @param Process $process The Process |
106 | 106 | * @param callable|null $callback A PHP callable |
107 | 107 | * |
108 | - * @return callable |
|
108 | + * @return \Closure |
|
109 | 109 | */ |
110 | 110 | public function wrapCallback(OutputInterface $output, Process $process, $callback = null) |
111 | 111 | { |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * @param string|bool $bytes where to start |
147 | 147 | * @param string $mode A `fread` compatible mode. |
148 | 148 | * @param bool $force If true then the file will be re-opened even if its already opened, otherwise it won't |
149 | - * @return mixed string on success, false on failure |
|
149 | + * @return string|false string on success, false on failure |
|
150 | 150 | */ |
151 | 151 | public function read($bytes = false, $mode = 'rb', $force = false) |
152 | 152 | { |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | /** |
369 | 369 | * Get md5 Checksum of file with previous check of Filesize |
370 | 370 | * |
371 | - * @param int|bool $maxsize in MB or true to force |
|
371 | + * @param integer $maxsize in MB or true to force |
|
372 | 372 | * @return string|false md5 Checksum {@link http://php.net/md5_file See md5_file()}, or false in case of an error |
373 | 373 | */ |
374 | 374 | public function md5($maxsize = 5) |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * |
104 | 104 | * @param string|null $path Path to folder |
105 | 105 | * @param bool $create Create folder if not found |
106 | - * @param int|bool $mode Mode (CHMOD) to apply to created folder, false to ignore |
|
106 | + * @param integer $mode Mode (CHMOD) to apply to created folder, false to ignore |
|
107 | 107 | */ |
108 | 108 | public function __construct($path = null, $create = false, $mode = false) |
109 | 109 | { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * |
157 | 157 | * @param bool $sort Whether you want the results sorted, set this and the sort property |
158 | 158 | * to false to get unsorted results. |
159 | - * @param array|bool $exceptions Either an array or boolean true will not grab dot files |
|
159 | + * @param boolean $exceptions Either an array or boolean true will not grab dot files |
|
160 | 160 | * @param bool $fullPath True returns the full path |
161 | 161 | * @return mixed Contents of current directory as an array, an empty array on failure |
162 | 162 | */ |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * |
208 | 208 | * @param string $regexpPattern Preg_match pattern (Defaults to: .*) |
209 | 209 | * @param bool $sort Whether results should be sorted. |
210 | - * @return array Files that match given pattern |
|
210 | + * @return string[] Files that match given pattern |
|
211 | 211 | */ |
212 | 212 | public function find($regexpPattern = '.*', $sort = false) |
213 | 213 | { |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | * Returns an array of nested directories and files in each directory |
449 | 449 | * |
450 | 450 | * @param string|null $path the directory path to build the tree from |
451 | - * @param array|bool $exceptions Either an array of files/folder to exclude |
|
451 | + * @param boolean $exceptions Either an array of files/folder to exclude |
|
452 | 452 | * or boolean true to not grab dot files/folders |
453 | 453 | * @param string|null $type either 'file' or 'dir'. Null returns both files and directories |
454 | 454 | * @return mixed array of nested directories and files in each directory |
@@ -113,7 +113,7 @@ |
||
113 | 113 | * @param string|null $locale The locale for the translator. |
114 | 114 | * @param callable|null $loader A callback function or callable class responsible for |
115 | 115 | * constructing a translations package instance. |
116 | - * @return \Aura\Intl\Translator|void The configured translator. |
|
116 | + * @return null|\Aura\Intl\TranslatorInterface The configured translator. |
|
117 | 117 | */ |
118 | 118 | public static function translator($name = 'default', $locale = null, callable $loader = null) |
119 | 119 | { |
@@ -219,7 +219,7 @@ |
||
219 | 219 | /** |
220 | 220 | * Getter/setter for default currency |
221 | 221 | * |
222 | - * @param string|bool|null $currency Default currency string to be used by currency() |
|
222 | + * @param string|boolean $currency Default currency string to be used by currency() |
|
223 | 223 | * if $currency argument is not provided. If boolean false is passed, it will clear the |
224 | 224 | * currently stored value |
225 | 225 | * @return string Currency |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use Carbon\Carbon; |
18 | 18 | use IntlDateFormatter; |
19 | 19 | use JsonSerializable; |
20 | -use RuntimeException; |
|
21 | 20 | |
22 | 21 | /** |
23 | 22 | * Extends the built-in DateTime class to provide handy methods and locale-aware |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * |
179 | 179 | * @param string $name The translation package name. |
180 | 180 | * @param string $locale The locale to create the translator for. |
181 | - * @return \Aura\Intl\Translator |
|
181 | + * @return \Closure |
|
182 | 182 | */ |
183 | 183 | protected function _fallbackLoader($name, $locale) |
184 | 184 | { |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | /** |
203 | 203 | * Returns a function that can be used as a loader for the registerLoaderMethod |
204 | 204 | * |
205 | - * @return callable |
|
205 | + * @return \Closure |
|
206 | 206 | */ |
207 | 207 | protected function _partialLoader() |
208 | 208 | { |