Passed
Push — main ( 766fea...b9eea3 )
by Sammy
07:20 queued 14s
created
src/Element.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -138,13 +138,13 @@
 block discarded – undo
138 138
     {
139 139
         $attributes = '';
140 140
 
141
-        if(!empty($this->attributes))
141
+        if (!empty($this->attributes))
142 142
         {
143
-            $attributes = array_walk($this->attributes, function(&$value, $key){
143
+            $attributes = array_walk($this->attributes, function(&$value, $key) {
144 144
                 $value = sprintf('%s="%s"', $key, $value);
145 145
             });
146 146
 
147
-            $attributes = ' ' . implode(' ', $this->attributes);
147
+            $attributes = ' '.implode(' ', $this->attributes);
148 148
         }
149 149
 
150 150
         return is_null($this->inner)
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,8 +108,7 @@
 block discarded – undo
108 108
         if ($value === null || $value === '') 
109 109
         {
110 110
             unset($this->attributes[$name]);
111
-        } 
112
-        else 
111
+        } else 
113 112
         {
114 113
             $this->attributes[$name] = $value;
115 114
         }
Please login to merge, or discard this patch.