Completed
Pull Request — master (#6667)
by Damian
23:30
created
tests/php/Core/ObjectTest/Extending.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -12,11 +12,22 @@  discard block
 block discarded – undo
12 12
         Extending_Extension::class,
13 13
     );
14 14
 
15
+    /**
16
+     * @param integer $first
17
+     * @param integer $second
18
+     * @param integer $third
19
+     */
15 20
     public function getResults(&$first, &$second, &$third)
16 21
     {
17 22
         // Before extending should be invoked second
18 23
         $this->beforeExtending(
19 24
             'updateResult',
25
+
26
+            /**
27
+             * @param integer $first
28
+             * @param integer $second
29
+             * @param integer $third
30
+             */
20 31
             function (&$first, &$second, &$third) {
21 32
                 if ($first === 1 && $second === 2 && $third === 3) {
22 33
                     $first = 11;
@@ -31,6 +42,12 @@  discard block
 block discarded – undo
31 42
         // After extending should be invoked fourth
32 43
         $this->afterExtending(
33 44
             'updateResult',
45
+
46
+            /**
47
+             * @param integer $first
48
+             * @param integer $second
49
+             * @param integer $third
50
+             */
34 51
             function (&$first, &$second, &$third) {
35 52
                 if ($first === 21 && $second === 22 && $third = 23) {
36 53
                     $first = 31;
Please login to merge, or discard this patch.
php/Core/Startup/ErrorControlChainTest/ErrorControlChainTest_Chain.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * Modify method visibility to public for testing
33 33
      *
34
-     * @param mixed $errors
34
+     * @param string $errors
35 35
      */
36 36
     public function setDisplayErrors($errors)
37 37
     {
@@ -40,6 +40,10 @@  discard block
 block discarded – undo
40 40
     }
41 41
 
42 42
     // Change function visibility to be testable directly
43
+
44
+    /**
45
+     * @param string $memstring
46
+     */
43 47
     public function translateMemstring($memstring)
44 48
     {
45 49
         return parent::translateMemstring($memstring);
Please login to merge, or discard this patch.
tests/php/Dev/CsvBulkLoaderTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -271,6 +271,9 @@
 block discarded – undo
271 271
     }
272 272
 
273 273
 
274
+    /**
275
+     * @param resource $file
276
+     */
274 277
     protected function getLineCount(&$file)
275 278
     {
276 279
         $i = 0;
Please login to merge, or discard this patch.
tests/php/Forms/DropdownFieldTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -399,7 +399,7 @@
 block discarded – undo
399 399
      * string of HTML.
400 400
      *
401 401
      * @param  string $html HTML to scan for elements
402
-     * @return SimpleXMLElement
402
+     * @return \SimpleXMLElement
403 403
      */
404 404
     public function findOptionElements($html)
405 405
     {
Please login to merge, or discard this patch.
php/Forms/GridField/GridField_URLHandlerTest/TestComponent_ItemRequest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
 
21 21
     protected $id;
22 22
 
23
+    /**
24
+     * @param string $link
25
+     */
23 26
     public function __construct($gridField, $id, $link)
24 27
     {
25 28
         $this->gridField = $gridField;
Please login to merge, or discard this patch.
tests/php/ORM/ChangeSetTest/Permissions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@
 block discarded – undo
39 39
         return $this->can(__FUNCTION__, $member, $context);
40 40
     }
41 41
 
42
+    /**
43
+     * @param string $perm
44
+     */
42 45
     public function can($perm, $member = null, $context = array())
43 46
     {
44 47
         $perms = [
Please login to merge, or discard this patch.
tests/php/ORM/HierarchyTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -670,7 +670,7 @@
 block discarded – undo
670 670
      * Get the HTML class attribute from a node in the sitetree
671 671
      *
672 672
      * @param  $html
673
-     * @param  $node
673
+     * @param  DataObject|null $node
674 674
      * @return string
675 675
      */
676 676
     protected function getNodeClassFromTree($html, $node)
Please login to merge, or discard this patch.
src/Control/Email/Email.php 1 patch
Doc Comments   +14 added lines, -14 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
      */
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
     }
673 673
 
674 674
     /**
675
-     * @return array|bool
675
+     * @return boolean
676 676
      */
677 677
     public function sendPlain()
678 678
     {
@@ -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/Security/Member.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -889,9 +889,9 @@  discard block
 block discarded – undo
889 889
      * });
890 890
      * </code>
891 891
      *
892
-     * @param Member|null|int $member Member or member ID to log in as.
892
+     * @param null|Member $member Member or member ID to log in as.
893 893
      * Set to null or 0 to act as a logged out user.
894
-     * @param $callback
894
+     * @param \Closure $callback
895 895
      */
896 896
     public static function actAs($member, $callback)
897 897
     {
@@ -1661,7 +1661,7 @@  discard block
 block discarded – undo
1661 1661
      * This is likely to be customized for social sites etc. with a looser permission model.
1662 1662
      *
1663 1663
      * @param Member $member
1664
-     * @return bool
1664
+     * @return boolean|string
1665 1665
      */
1666 1666
     public function canView($member = null)
1667 1667
     {
@@ -1692,7 +1692,7 @@  discard block
 block discarded – undo
1692 1692
      * Otherwise they'll need ADMIN or CMS_ACCESS_SecurityAdmin permissions
1693 1693
      *
1694 1694
      * @param Member $member
1695
-     * @return bool
1695
+     * @return boolean|string
1696 1696
      */
1697 1697
     public function canEdit($member = null)
1698 1698
     {
@@ -1727,7 +1727,7 @@  discard block
 block discarded – undo
1727 1727
      * Otherwise they'll need ADMIN or CMS_ACCESS_SecurityAdmin permissions
1728 1728
      *
1729 1729
      * @param Member $member
1730
-     * @return bool
1730
+     * @return boolean|string
1731 1731
      */
1732 1732
     public function canDelete($member = null)
1733 1733
     {
Please login to merge, or discard this patch.