Completed
Pull Request — master (#2175)
by m
04:24 queued 16s
created
src/Form/Field.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     /**
203 203
      * Field constructor.
204 204
      *
205
-     * @param       $column
205
+     * @param       string $column
206 206
      * @param array $arguments
207 207
      */
208 208
     public function __construct($column, $arguments = [])
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
     /**
402 402
      * Get or set rules.
403 403
      *
404
-     * @param null  $rules
404
+     * @param string  $rules
405 405
      * @param array $messages
406 406
      *
407 407
      * @return $this
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
     /**
495 495
      * Set or get value of the field.
496 496
      *
497
-     * @param null $value
497
+     * @param string $value
498 498
      *
499 499
      * @return mixed
500 500
      */
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
     /**
648 648
      * Add html attributes to elements.
649 649
      *
650
-     * @param array|string $attribute
650
+     * @param string $attribute
651 651
      * @param mixed        $value
652 652
      *
653 653
      * @return $this
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
         if (is_array($attribute)) {
658 658
             $this->attributes = array_merge($this->attributes, $attribute);
659 659
         } else {
660
-            $this->attributes[$attribute] = (string)$value;
660
+            $this->attributes[$attribute] = (string) $value;
661 661
         }
662 662
 
663 663
         return $this;
@@ -760,7 +760,7 @@  discard block
 block discarded – undo
760 760
      */
761 761
     public function setElementClass($class)
762 762
     {
763
-        $this->elementClass = (array)$class;
763
+        $this->elementClass = (array) $class;
764 764
 
765 765
         return $this;
766 766
     }
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
         if (!$this->elementClass) {
776 776
             $name = $this->elementName ?: $this->formatName($this->column);
777 777
 
778
-            $this->elementClass = (array)str_replace(['[', ']'], '_', $name);
778
+            $this->elementClass = (array) str_replace(['[', ']'], '_', $name);
779 779
         }
780 780
 
781 781
         return $this->elementClass;
@@ -835,7 +835,7 @@  discard block
 block discarded – undo
835 835
     public function addElementClass($class)
836 836
     {
837 837
         if (is_array($class) || is_string($class)) {
838
-            $this->elementClass = array_merge($this->elementClass, (array)$class);
838
+            $this->elementClass = array_merge($this->elementClass, (array) $class);
839 839
 
840 840
             $this->elementClass = array_unique($this->elementClass);
841 841
         }
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
         $delClass = [];
856 856
 
857 857
         if (is_string($class) || is_array($class)) {
858
-            $delClass = (array)$class;
858
+            $delClass = (array) $class;
859 859
         }
860 860
 
861 861
         foreach ($delClass as $del) {
Please login to merge, or discard this patch.