Completed
Pull Request — master (#7008)
by Simon
08:47
created
tests/php/View/ContentNegotiatorTest.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -14,6 +14,7 @@
 block discarded – undo
14 14
     /**
15 15
      * Small helper to render templates from strings
16 16
      * Cloned from SSViewerTest
17
+     * @param string $templateString
17 18
      */
18 19
     private function render($templateString, $data = null)
19 20
     {
Please login to merge, or discard this patch.
src/Forms/DateField.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
     /**
312 312
      * Assign value posted from form submission
313 313
      *
314
-     * @param mixed $value
314
+     * @param string $value
315 315
      * @param mixed $data
316 316
      * @return $this
317 317
      */
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
      *
337 337
      * When $html5=true, assign value from ISO 8601 string.
338 338
      *
339
-     * @param mixed $value
339
+     * @param string $value
340 340
      * @param mixed $data
341 341
      * @return $this
342 342
      */
Please login to merge, or discard this patch.
tests/behat/src/CmsUiContext.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -479,6 +479,7 @@
 block discarded – undo
479 479
      *
480 480
      * @When /^(?:|I )fill in the "(?P<field>(?:[^"]|\\")*)" dropdown with "(?P<value>(?:[^"]|\\")*)"$/
481 481
      * @When /^(?:|I )fill in "(?P<value>(?:[^"]|\\")*)" for the "(?P<field>(?:[^"]|\\")*)" dropdown$/
482
+     * @param string $field
482 483
      */
483 484
     public function theIFillInTheDropdownWith($field, $value)
484 485
     {
Please login to merge, or discard this patch.
src/Forms/DatetimeField.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     }
136 136
 
137 137
     /**
138
-     * @param $bool
138
+     * @param boolean $bool
139 139
      * @return $this
140 140
      */
141 141
     public function setHTML5($bool)
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      * Assign value posted from form submission, based on {@link $datetimeFormat}.
149 149
      * When $html5=true, this needs to be normalised ISO format (with "T" separator).
150 150
      *
151
-     * @param mixed $value
151
+     * @param string $value
152 152
      * @param mixed $data
153 153
      * @return $this
154 154
      */
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      * When $html5=true, assign value from ISO 8601 normalised string (with a "T" separator).
315 315
      * Falls back to an ISO 8601 string (with a whitespace separator).
316 316
      *
317
-     * @param mixed $value
317
+     * @param string $value
318 318
      * @param mixed $data
319 319
      * @return $this
320 320
      */
@@ -489,6 +489,9 @@  discard block
 block discarded – undo
489 489
         return $this;
490 490
     }
491 491
 
492
+    /**
493
+     * @param boolean $bool
494
+     */
492 495
     public function setReadonly($bool)
493 496
     {
494 497
         parent::setReadonly($bool);
Please login to merge, or discard this patch.
src/Forms/CompositeField.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -270,6 +270,9 @@  discard block
 block discarded – undo
270 270
 
271 271
 
272 272
 
273
+    /**
274
+     * @param boolean $disabled
275
+     */
273 276
     public function setDisabled($disabled)
274 277
     {
275 278
         parent::setDisabled($disabled);
@@ -279,6 +282,9 @@  discard block
 block discarded – undo
279 282
         return $this;
280 283
     }
281 284
 
285
+    /**
286
+     * @param boolean $readonly
287
+     */
282 288
     public function setReadonly($readonly)
283 289
     {
284 290
         parent::setReadonly($readonly);
@@ -371,6 +377,10 @@  discard block
 block discarded – undo
371 377
         $this->children->removeByName($fieldName, $dataFieldOnly);
372 378
     }
373 379
 
380
+    /**
381
+     * @param string $fieldName
382
+     * @param FormField $newField
383
+     */
374 384
     public function replaceField($fieldName, $newField)
375 385
     {
376 386
         return $this->children->replaceField($fieldName, $newField);
@@ -456,6 +466,7 @@  discard block
 block discarded – undo
456 466
      * the children collection. Doesn't work recursively.
457 467
      *
458 468
      * @param string|FormField
469
+     * @param string $field
459 470
      * @return int Position in children collection (first position starts with 0). Returns FALSE if the field can't
460 471
      *             be found.
461 472
      */
Please login to merge, or discard this patch.
tests/php/Forms/GridField/GridFieldAddNewButtonTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -88,6 +88,9 @@
 block discarded – undo
88 88
         $this->mockButtonFragments($list, null);
89 89
     }
90 90
 
91
+    /**
92
+     * @param \SilverStripe\ORM\DataObject $parent
93
+     */
91 94
     protected function mockButtonFragments(SS_List $list, $parent = null)
92 95
     {
93 96
         $form = Form::create(
Please login to merge, or discard this patch.
src/ORM/DataObject.php 1 patch
Doc Comments   +9 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2176,7 +2176,7 @@  discard block
 block discarded – undo
2176 2176
      * Called by {@link __get()} and any getFieldName() methods you might create.
2177 2177
      *
2178 2178
      * @param string $field The name of the field
2179
-     * @return mixed The field value
2179
+     * @return string|null The field value
2180 2180
      */
2181 2181
     public function getField($field)
2182 2182
     {
@@ -2458,6 +2458,7 @@  discard block
 block discarded – undo
2458 2458
 
2459 2459
     /**
2460 2460
      * {@inheritdoc}
2461
+     * @param string $field
2461 2462
      */
2462 2463
     public function castingHelper($field)
2463 2464
     {
@@ -2563,7 +2564,7 @@  discard block
 block discarded – undo
2563 2564
      * </code>
2564 2565
      *
2565 2566
      * @param string $methodName Method on the same object, e.g. {@link canEdit()}
2566
-     * @param Member|int $member
2567
+     * @param null|Member $member
2567 2568
      * @param array $context Optional context
2568 2569
      * @return boolean|null
2569 2570
      */
@@ -2586,7 +2587,7 @@  discard block
 block discarded – undo
2586 2587
 
2587 2588
     /**
2588 2589
      * @param Member $member
2589
-     * @return boolean
2590
+     * @return boolean|string
2590 2591
      */
2591 2592
     public function canView($member = null)
2592 2593
     {
@@ -2599,7 +2600,7 @@  discard block
 block discarded – undo
2599 2600
 
2600 2601
     /**
2601 2602
      * @param Member $member
2602
-     * @return boolean
2603
+     * @return boolean|string
2603 2604
      */
2604 2605
     public function canEdit($member = null)
2605 2606
     {
@@ -2612,7 +2613,7 @@  discard block
 block discarded – undo
2612 2613
 
2613 2614
     /**
2614 2615
      * @param Member $member
2615
-     * @return boolean
2616
+     * @return boolean|string
2616 2617
      */
2617 2618
     public function canDelete($member = null)
2618 2619
     {
@@ -2627,7 +2628,7 @@  discard block
 block discarded – undo
2627 2628
      * @param Member $member
2628 2629
      * @param array $context Additional context-specific data which might
2629 2630
      * affect whether (or where) this object could be created.
2630
-     * @return boolean
2631
+     * @return boolean|string
2631 2632
      */
2632 2633
     public function canCreate($member = null, $context = array())
2633 2634
     {
@@ -2742,7 +2743,7 @@  discard block
 block discarded – undo
2742 2743
      * Traverses to a field referenced by relationships between data objects, returning the value
2743 2744
      * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName)
2744 2745
      *
2745
-     * @param $fieldName string
2746
+     * @param string $fieldName string
2746 2747
      * @return string | null - will return null on a missing value
2747 2748
      */
2748 2749
     public function relField($fieldName)
@@ -2820,7 +2821,7 @@  discard block
 block discarded – undo
2820 2821
      * @param string $callerClass The class of objects to be returned
2821 2822
      * @param string|array $filter A filter to be inserted into the WHERE clause.
2822 2823
      * Supports parameterised queries. See SQLSelect::addWhere() for syntax examples.
2823
-     * @param string|array $sort A sort expression to be inserted into the ORDER
2824
+     * @param string $sort A sort expression to be inserted into the ORDER
2824 2825
      * BY clause.  If omitted, self::$default_sort will be used.
2825 2826
      * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead.
2826 2827
      * @param string|array $limit A limit expression to be inserted into the LIMIT clause.
Please login to merge, or discard this patch.
src/Security/InheritedPermissions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
     /**
87 87
      * Global permissions required to edit
88 88
      *
89
-     * @param array $permissions
89
+     * @param string[] $permissions
90 90
      * @return $this
91 91
      */
92 92
     public function setGlobalEditPermissions($permissions)
Please login to merge, or discard this patch.
tests/php/Core/Manifest/ManifestFileFinderTest.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -19,6 +19,11 @@
 block discarded – undo
19 19
         parent::__construct();
20 20
     }
21 21
 
22
+    /**
23
+     * @param ManifestFileFinder $finder
24
+     * @param null|string $base
25
+     * @param string[] $expect
26
+     */
22 27
     public function assertFinderFinds($finder, $base, $expect, $message = null)
23 28
     {
24 29
         if (!$base) {
Please login to merge, or discard this patch.