Passed
Push — main ( a41bf5...10f25b )
by Sammy
05:56
created
Element.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
         foreach ($this->attributeList as $k => $v) {
34 34
             if (!is_null($v) && $v !== '' && !is_array($v)) {
35
-                $ret .=  is_int($k) ? " $v" : sprintf(' %s="%s"', $k, $v);
35
+                $ret .= is_int($k) ? " $v" : sprintf(' %s="%s"', $k, $v);
36 36
             }
37 37
         }
38 38
 
Please login to merge, or discard this patch.
Form.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@  discard block
 block discarded – undo
12 12
     {
13 13
       // arguments [name, value, [attributes], [errors]]
14 14
         $i = 0;
15
-        $field_name =  $arguments[$i++] ?? null;
15
+        $field_name = $arguments[$i++] ?? null;
16 16
         $field_value = $arguments[$i++] ?? null;
17
-        $attributes =  $arguments[$i++] ?? [];
18
-        $errors =      $arguments[$i++] ?? [];
17
+        $attributes = $arguments[$i++] ?? [];
18
+        $errors = $arguments[$i++] ?? [];
19 19
 
20 20
 
21 21
         $attributes['type'] = $element_type;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         foreach ($option_list as $value => $label) {
64 64
             $option_attributes = ['value' => $value];
65 65
             if ($selected == $value) {
66
-                $option_attributes['selected'] =  'selected';
66
+                $option_attributes['selected'] = 'selected';
67 67
             }
68 68
 
69 69
             $options .= new Element('option', $label, $option_attributes);
@@ -113,6 +113,6 @@  discard block
 block discarded – undo
113 113
         }
114 114
 
115 115
       // vd($attributes, $tag);
116
-        return $label . (new Element($tag, $content, $attributes));
116
+        return $label.(new Element($tag, $content, $attributes));
117 117
     }
118 118
 }
Please login to merge, or discard this patch.