Passed
Push — master ( e8ba28...a594cd )
by Sebastian
03:48
created
src/Traits/Classable.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     
33 33
     public function addClass(string $name)
34 34
     {
35
-        if(!in_array($name, $this->classes)) {
35
+        if (!in_array($name, $this->classes)) {
36 36
             $this->classes[] = $name;
37 37
         }
38 38
         
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     
42 42
     public function addClasses(array $names)
43 43
     {
44
-        foreach($names as $name) {
44
+        foreach ($names as $name) {
45 45
             $this->addClass($name);
46 46
         }
47 47
         
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $idx = array_search($name, $this->classes);
59 59
         
60
-        if($idx !== false) {
60
+        if ($idx !== false) {
61 61
             unset($this->classes[$idx]);
62 62
             sort($this->classes);
63 63
         }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     */
92 92
     public function classesToAttribute() : string
93 93
     {
94
-        if(!empty($this->classes))
94
+        if (!empty($this->classes))
95 95
         {
96 96
             return sprintf(
97 97
                 ' class="%s" ',
Please login to merge, or discard this patch.