Passed
Push — master ( 2d43fd...f4c9de )
by Sebastian
02:54
created
src/Traits/Classable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     
30 30
     public function addClass(string $name)
31 31
     {
32
-        if(!in_array($name, $this->classes)) {
32
+        if (!in_array($name, $this->classes)) {
33 33
             $this->classes[] = $name;
34 34
         }
35 35
         
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     
39 39
     public function addClasses(array $names)
40 40
     {
41
-        foreach($names as $name) {
41
+        foreach ($names as $name) {
42 42
             $this->addClass($name);
43 43
         }
44 44
         
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $idx = array_search($name, $this->classes);
56 56
         
57
-        if($idx !== false) {
57
+        if ($idx !== false) {
58 58
             unset($this->classes[$idx]);
59 59
             sort($this->classes);
60 60
         }
Please login to merge, or discard this patch.