Completed
Pull Request — master (#6829)
by Simon
08:38
created
src/Forms/TimeField.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
     /**
248 248
      * Assign value posted from form submission
249 249
      *
250
-     * @param mixed $value
250
+     * @param string $value
251 251
      * @param mixed $data
252 252
      * @return $this
253 253
      */
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     /**
265 265
      * Set time assigned from database value
266 266
      *
267
-     * @param mixed $value
267
+     * @param string $value
268 268
      * @param mixed $data
269 269
      * @return $this
270 270
      */
Please login to merge, or discard this patch.
src/Security/MemberAuthenticator/LostPasswordHandler.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,6 +55,7 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * Return a link to this request handler.
57 57
      * The link returned is supplied in the constructor
58
+     * @param string $action
58 59
      * @return string
59 60
      */
60 61
     public function link($action = null)
@@ -115,7 +116,7 @@  discard block
 block discarded – undo
115 116
      * Factory method for the lost password form
116 117
      *
117 118
      * @skipUpgrade
118
-     * @return Form Returns the lost password form
119
+     * @return LoginForm Returns the lost password form
119 120
      */
120 121
     public function lostPasswordForm()
121 122
     {
@@ -247,6 +248,8 @@  discard block
 block discarded – undo
247 248
 
248 249
     /**
249 250
      * @todo copypaste from FormRequestHandler - refactor
251
+     * @param string $link
252
+     * @return string
250 253
      */
251 254
     protected function addBackURLParam($link)
252 255
     {
Please login to merge, or discard this patch.
src/Control/Email/Email.php 1 patch
Doc Comments   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -135,12 +135,12 @@  discard block
 block discarded – undo
135 135
 
136 136
     /**
137 137
      * Email constructor.
138
-     * @param string|array|null $from
139
-     * @param string|array|null $to
138
+     * @param string $from
139
+     * @param string $to
140 140
      * @param string|null $subject
141 141
      * @param string|null $body
142
-     * @param string|array|null $cc
143
-     * @param string|array|null $bcc
142
+     * @param string $cc
143
+     * @param string $bcc
144 144
      * @param string|null $returnPath
145 145
      */
146 146
     public function __construct(
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     }
227 227
 
228 228
     /**
229
-     * @param string|array $address
229
+     * @param string $address
230 230
      * @param string|null $name
231 231
      * @return $this
232 232
      */
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     }
239 239
 
240 240
     /**
241
-     * @return array
241
+     * @return string
242 242
      */
243 243
     public function getSender()
244 244
     {
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     }
304 304
 
305 305
     /**
306
-     * @param string|array $address
306
+     * @param string $address
307 307
      * @param string|null $name
308 308
      * @return $this
309 309
      */
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
     }
336 336
 
337 337
     /**
338
-     * @param string|array $address
338
+     * @param string $address
339 339
      * @param string|null $name
340 340
      * @return $this
341 341
      */
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
     }
368 368
 
369 369
     /**
370
-     * @param string|array $address
370
+     * @param string $address
371 371
      * @param string|null $name
372 372
      * @return $this
373 373
      */
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
     }
385 385
 
386 386
     /**
387
-     * @param string|array $address
387
+     * @param string $address
388 388
      * @param string|null $name
389 389
      * @return $this
390 390
      */
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
     }
397 397
 
398 398
     /**
399
-     * @param string|array $address
399
+     * @param string $address
400 400
      * @param string|null $name
401 401
      * @return $this
402 402
      */
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
     }
503 503
 
504 504
     /**
505
-     * @param string|array $name The data name to add or array to names => value
505
+     * @param string $name The data name to add or array to names => value
506 506
      * @param string|null $value The value of the data to add
507 507
      * @return $this
508 508
      */
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
     }
729 729
 
730 730
     /**
731
-     * @return Swift_MimePart|false
731
+     * @return \Swift_Mime_MimeEntity
732 732
      */
733 733
     public function findPlainPart()
734 734
     {
Please login to merge, or discard this patch.
src/Control/Session.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -330,6 +330,9 @@  discard block
 block discarded – undo
330 330
         }
331 331
     }
332 332
 
333
+    /**
334
+     * @param string $name
335
+     */
333 336
     public function inst_set($name, $val)
334 337
     {
335 338
         // Quicker execution path for "."-free names
@@ -379,6 +382,11 @@  discard block
 block discarded – undo
379 382
         $diffVar[sizeof($var)-1] = $val;
380 383
     }
381 384
 
385
+    /**
386
+     * @param string $name
387
+     *
388
+     * @return string
389
+     */
382 390
     public function inst_get($name)
383 391
     {
384 392
         // Quicker execution path for "."-free names
Please login to merge, or discard this patch.
src/Core/Manifest/ClassManifest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     /**
226 226
      * Returns a lowercase array of all the class names in the manifest.
227 227
      *
228
-     * @return array
228
+     * @return string[]
229 229
      */
230 230
     public function getClassNames()
231 231
     {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      * Returns an array containing all the descendants (direct and indirect)
257 257
      * of a class.
258 258
      *
259
-     * @param  string|object $class
259
+     * @param  string $class
260 260
      * @return array
261 261
      */
262 262
     public function getDescendantsOf($class)
Please login to merge, or discard this patch.
src/ORM/FieldType/DBField.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     /**
176 176
      * Returns the value of this field.
177 177
      *
178
-     * @return mixed
178
+     * @return string
179 179
      */
180 180
     public function getValue()
181 181
     {
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
     }
534 534
 
535 535
     /**
536
-     * @param array $value
536
+     * @param string $value
537 537
      * @return $this
538 538
      */
539 539
     public function setArrayValue($value)
Please login to merge, or discard this patch.
tests/php/Core/Manifest/ManifestFileFinderTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -19,6 +19,10 @@
 block discarded – undo
19 19
         parent::__construct();
20 20
     }
21 21
 
22
+    /**
23
+     * @param ManifestFileFinder $finder
24
+     * @param string[] $expect
25
+     */
22 26
     public function assertFinderFinds($finder, $expect, $message = null)
23 27
     {
24 28
         $found = $finder->find($this->base);
Please login to merge, or discard this patch.
tests/php/Core/Manifest/ThemeResourceLoaderTest.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -279,6 +279,9 @@  discard block
 block discarded – undo
279 279
         );
280 280
     }
281 281
 
282
+    /**
283
+     * @param string[] $templates
284
+     */
282 285
     protected function createTestTemplates($templates)
283 286
     {
284 287
         foreach ($templates as $template) {
@@ -286,6 +289,9 @@  discard block
 block discarded – undo
286 289
         }
287 290
     }
288 291
 
292
+    /**
293
+     * @param string[] $templates
294
+     */
289 295
     protected function removeTestTemplates($templates)
290 296
     {
291 297
         foreach ($templates as $template) {
Please login to merge, or discard this patch.
tests/php/Core/Startup/ParameterConfirmationTokenTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@
 block discarded – undo
10 10
 class ParameterConfirmationTokenTest extends SapphireTest
11 11
 {
12 12
 
13
+    /**
14
+     * @param string $part
15
+     */
13 16
     private function addPart($answer, $slash, $part)
14 17
     {
15 18
         $bare = str_replace('/', '', $part);
Please login to merge, or discard this patch.