Completed
Pull Request — master (#12303)
by
unknown
09:44
created
src/Shell/Task/ExtractTask.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -398,7 +398,7 @@
 block discarded – undo
398 398
      * Parse tokens
399 399
      *
400 400
      * @param string $functionName Function name that indicates translatable string (e.g: '__')
401
-     * @param array $map Array containing what variables it will find (e.g: domain, singular, plural)
401
+     * @param string[] $map Array containing what variables it will find (e.g: domain, singular, plural)
402 402
      * @return void
403 403
      */
404 404
     protected function _parse($functionName, $map)
Please login to merge, or discard this patch.
src/ORM/LazyEagerLoader.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,8 +125,8 @@
 block discarded – undo
125 125
      * Injects the results of the eager loader query into the original list of
126 126
      * entities.
127 127
      *
128
-     * @param array|\Traversable $objects The original list of entities
129
-     * @param \Cake\Collection\CollectionInterface|\Cake\Database\Query $results The loaded results
128
+     * @param Collection $objects The original list of entities
129
+     * @param Query $results The loaded results
130 130
      * @param array $associations The top level associations that were loaded
131 131
      * @param \Cake\ORM\Table $source The table where the entities came from
132 132
      * @return array
Please login to merge, or discard this patch.
src/Log/Engine/FileLog.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
      *    See Cake\Log\Log::$_levels for list of possible levels.
118 118
      * @param string $message The message you want to log.
119 119
      * @param array $context Additional information about the logged message
120
-     * @return bool success of write.
120
+     * @return integer success of write.
121 121
      */
122 122
     public function log($level, $message, array $context = [])
123 123
     {
Please login to merge, or discard this patch.
src/Core/ClassLoader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
      *
99 99
      * @param string $prefix The namespace prefix.
100 100
      * @param string $relativeClass The relative class name.
101
-     * @return mixed Boolean false if no mapped file can be loaded, or the
101
+     * @return false|string Boolean false if no mapped file can be loaded, or the
102 102
      * name of the mapped file that was loaded.
103 103
      */
104 104
     protected function _loadMappedFile($prefix, $relativeClass)
Please login to merge, or discard this patch.
src/Datasource/RulesAwareTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      *
44 44
      * @param \Cake\Datasource\EntityInterface $entity The entity to check for validity.
45 45
      * @param string $operation The operation being run. Either 'create', 'update' or 'delete'.
46
-     * @param \ArrayObject|array|null $options The options To be passed to the rules.
46
+     * @param ArrayObject $options The options To be passed to the rules.
47 47
      * @return bool
48 48
      */
49 49
     public function checkRules(EntityInterface $entity, $operation = RulesChecker::CREATE, $options = null)
Please login to merge, or discard this patch.
src/Controller/Component/SecurityComponent.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
      * Return hash parts for the Token generation
377 377
      *
378 378
      * @param \Cake\Controller\Controller $controller Instantiating controller
379
-     * @return array
379
+     * @return string[]
380 380
      */
381 381
     protected function _hashParts(Controller $controller)
382 382
     {
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
      * Create a message for humans to understand why Security token is not matching
490 490
      *
491 491
      * @param \Cake\Controller\Controller $controller Instantiating controller
492
-     * @param array $hashParts Elements used to generate the Token hash
492
+     * @param string[] $hashParts Elements used to generate the Token hash
493 493
      * @return string Message explaining why the tokens are not matching
494 494
      */
495 495
     protected function _debugPostTokenNotMatching(Controller $controller, $hashParts)
Please login to merge, or discard this patch.
src/Console/ConsoleIo.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      *
180 180
      * **Warning** You cannot overwrite text that contains newlines.
181 181
      *
182
-     * @param array|string $message The message to output.
182
+     * @param string $message The message to output.
183 183
      * @param int $newlines Number of newlines to append.
184 184
      * @param int|null $size The number of bytes to overwrite. Defaults to the
185 185
      *    length of the last message output.
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      *
248 248
      * @param string $prompt Prompt text.
249 249
      * @param string|null $default Default input value.
250
-     * @return mixed Either the default value, or the user-provided input.
250
+     * @return string Either the default value, or the user-provided input.
251 251
      */
252 252
     public function ask($prompt, $default = null)
253 253
     {
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
      * @param string $prompt Prompt text.
288 288
      * @param string|array $options Array or string of options.
289 289
      * @param string|null $default Default input value.
290
-     * @return mixed Either the default value, or the user-provided input.
290
+     * @return string Either the default value, or the user-provided input.
291 291
      */
292 292
     public function askChoice($prompt, $options, $default = null)
293 293
     {
Please login to merge, or discard this patch.
src/Routing/Route/DashedRoute.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      * @param array $context An array of the current request context.
89 89
      *   Contains information such as the current host, scheme, port, and base
90 90
      *   directory.
91
-     * @return bool|string Either false or a string URL.
91
+     * @return string|false Either false or a string URL.
92 92
      */
93 93
     public function match(array $url, array $context = [])
94 94
     {
Please login to merge, or discard this patch.
src/Http/ResponseTransformer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      * Parse the Set-Cookie headers in a PSR7 response
86 86
      * into the format CakePHP expects.
87 87
      *
88
-     * @param array $cookieHeader A list of Set-Cookie headers.
88
+     * @param string[] $cookieHeader A list of Set-Cookie headers.
89 89
      * @return array Parsed cookie data.
90 90
      */
91 91
     protected static function parseCookies(array $cookieHeader)
Please login to merge, or discard this patch.