@@ -107,7 +107,7 @@ |
||
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 |
@@ -48,7 +48,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -315,7 +315,7 @@ |
||
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'] |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | foreach ($list as $value => $label) { |
72 | 72 | $option_attributes = ['value' => $value]; |
73 | 73 | if ($selected == $value) { |
74 | - $option_attributes['selected'] = 'selected'; |
|
74 | + $option_attributes['selected'] = 'selected'; |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | $options .= new Element('option', "$label", $option_attributes); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | public static function legend(string $label, array $attributes = []): string |
84 | 84 | { |
85 | - return '' . (new Element('legend', $label, $attributes)); |
|
85 | + return ''.(new Element('legend', $label, $attributes)); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | public static function label(string $for, string $label, array $attributes = []): string |
@@ -125,6 +125,6 @@ discard block |
||
125 | 125 | unset($attributes['label']); |
126 | 126 | } |
127 | 127 | |
128 | - return $label . (new Element($tag, $content, $attributes)); |
|
128 | + return $label.(new Element($tag, $content, $attributes)); |
|
129 | 129 | } |
130 | 130 | } |