Completed
Pull Request — master (#6883)
by Ingo
12:06 queued 03:50
created
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.
src/Forms/DatetimeField.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     }
141 141
 
142 142
     /**
143
-     * @param $bool
143
+     * @param boolean $bool
144 144
      * @return $this
145 145
      */
146 146
     public function setHTML5($bool)
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      * Assign value posted from form submission, based on {@link $datetimeFormat}.
154 154
      * When $html5=true, this needs to be normalised ISO format (with "T" separator).
155 155
      *
156
-     * @param mixed $value
156
+     * @param string $value
157 157
      * @param mixed $data
158 158
      * @return $this
159 159
      */
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
      * When $html5=true, assign value from ISO 8601 normalised string (with a "T" separator).
342 342
      * Falls back to an ISO 8601 string (with a whitespace separator).
343 343
      *
344
-     * @param mixed $value
344
+     * @param string $value
345 345
      * @param mixed $data
346 346
      * @return $this
347 347
      */
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
      * Tidy up the internal date representation (ISO 8601),
457 457
      * and fall back to strtotime() if there's parsing errors.
458 458
      *
459
-     * @param string $date Date in ISO 8601 or approximate form
459
+     * @param string $datetime
460 460
      * @return string ISO 8601 date, or null if not valid
461 461
      */
462 462
     public function tidyInternal($datetime)
@@ -551,6 +551,9 @@  discard block
 block discarded – undo
551 551
         return $this;
552 552
     }
553 553
 
554
+    /**
555
+     * @param boolean $bool
556
+     */
554 557
     public function setReadonly($bool)
555 558
     {
556 559
         parent::setReadonly($bool);
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/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.