Passed
Push — main ( e821a6...886d9d )
by Sammy
01:38
created
src/Element.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
         $ret = '';
108 108
         foreach ($attributes as $k => $v) {
109 109
             if (self::isValidValue($v)) {
110
-                $ret .=  ' ' . (self::isBooleanAttribute($k) ? $v : sprintf(self::FORMAT_ATTRIBUTES, $k, $v));
110
+                $ret .= ' '.(self::isBooleanAttribute($k) ? $v : sprintf(self::FORMAT_ATTRIBUTES, $k, $v));
111 111
             }
112 112
         }
113 113
 
Please login to merge, or discard this patch.
tests/ElementTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         foreach ($this->tags as $tag) {
49 49
             $e = new Element($tag);
50 50
             if ($e->isVoid()) {
51
-                $this->assertEquals('<' . $tag . '/>', $e->__toString());
51
+                $this->assertEquals('<'.$tag.'/>', $e->__toString());
52 52
             } else {
53 53
                 $this->assertEquals(sprintf('<%s></%s>', $tag, $tag), $e->__toString());
54 54
             }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 $e = new Element($tag, $message);
69 69
 
70 70
                 if ($e->isVoid()) {
71
-                    $this->assertEquals('<' . $tag . '/>', $e->__toString());
71
+                    $this->assertEquals('<'.$tag.'/>', $e->__toString());
72 72
                 } else {
73 73
                     $this->assertEquals(sprintf('<%s>%s</%s>', $tag, $expected, $tag), $e->__toString());
74 74
                 }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         $this->assertForAllHTMLTags($message, $attributes, $attributes_expected_string);
118 118
 
119 119
 
120
-        $attributes = ['class' => 'test_class', 'style="color:red;"','id' => 'test_id'];
120
+        $attributes = ['class' => 'test_class', 'style="color:red;"', 'id' => 'test_id'];
121 121
         $attributes_expected_string = ' class="test_class" style="color:red;" id="test_id"';
122 122
 
123 123
       // testing attributes string generator
Please login to merge, or discard this patch.
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/Form.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         foreach ($list as $value => $label) {
73 73
             $option_attributes = ['value' => $value];
74 74
             if ($selected == $value) {
75
-                $option_attributes['selected'] =  'selected';
75
+                $option_attributes['selected'] = 'selected';
76 76
             }
77 77
 
78 78
             $options .= new Element('option', "$label", $option_attributes);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
     public static function legend(string $label, array $attributes = []): string
85 85
     {
86
-        return '' . (new Element('legend', $label, $attributes));
86
+        return ''.(new Element('legend', $label, $attributes));
87 87
     }
88 88
 
89 89
     public static function label(string $for, string $label, array $attributes = [], array $errors = []): string
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
 
129 129
         $label = '';
130 130
         if (isset($attributes['label'])) {
131
-            $label = self::label($attributes['id'], $attributes['label'], [], ['' . $attributes['id'] => 'error']);
131
+            $label = self::label($attributes['id'], $attributes['label'], [], [''.$attributes['id'] => 'error']);
132 132
             unset($attributes['label']);
133 133
         }
134 134
 
135
-        return $label . (new Element($tag, $content, $attributes));
135
+        return $label.(new Element($tag, $content, $attributes));
136 136
     }
137 137
 }
Please login to merge, or discard this patch.