Completed
Pull Request — master (#2175)
by m
04:24 queued 16s
created
src/Form/Field.php 1 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.