@@ -657,7 +657,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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) { |