Passed
Push — main ( b9eea3...4567d4 )
by Sammy
07:22
created
src/Marker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -315,7 +315,7 @@
 block discarded – undo
315 315
         return
316 316
         Marker::div(
317 317
             Marker::label(
318
-                Form::input($name, $value, $attributes) . Marker::span($label),
318
+                Form::input($name, $value, $attributes).Marker::span($label),
319 319
                 ['for' => $attributes['id']]
320 320
             ),
321 321
             ['class' => 'checkbutton']
Please login to merge, or discard this patch.
src/Element.php 1 patch
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.
src/Form.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         foreach ($list as $value => $label) {
108 108
             $option_attributes = ['value' => $value];
109 109
             if ($selected == $value) {
110
-                $option_attributes['selected'] =  'selected';
110
+                $option_attributes['selected'] = 'selected';
111 111
             }
112 112
 
113 113
             $options .= new Element('option', "$label", $option_attributes);
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public static function legend(string $label, array $attributes = []): string
127 127
     {
128
-        return '' . (new Element('legend', $label, $attributes));
128
+        return ''.(new Element('legend', $label, $attributes));
129 129
     }
130 130
 
131 131
     /**
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
     public static function button(string $label, array $attributes = []): string
148 148
     {
149
-        return  '' . (new Element('button', $label, $attributes));
149
+        return  ''.(new Element('button', $label, $attributes));
150 150
     }
151 151
 
152 152
     /**
@@ -201,6 +201,6 @@  discard block
 block discarded – undo
201 201
         }
202 202
         
203 203
 
204
-        return $label . (new Element($tag, $content, $attributes));
204
+        return $label.(new Element($tag, $content, $attributes));
205 205
     }
206 206
 }
Please login to merge, or discard this patch.