@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | $this->tag = $tag; |
34 | 34 | $this->inner = $inner; |
35 | - $this->formatter = $formatter ?? function ($value) { |
|
35 | + $this->formatter = $formatter ?? function($value) { |
|
36 | 36 | return htmlspecialchars($value, ENT_QUOTES); |
37 | 37 | }; |
38 | 38 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | foreach ($this->attributes as $name => $value) { |
77 | 77 | $name = ($this->formatter)($name); |
78 | - $attributes .= ' ' . ($value === true ? $name : sprintf('%s="%s"', $name, ($this->formatter)((string)$value))); |
|
78 | + $attributes .= ' '.($value === true ? $name : sprintf('%s="%s"', $name, ($this->formatter)((string)$value))); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | return $this->inner === null |