Passed
Push — main ( c9f6cd...c80162 )
by Sammy
02:02 queued 15s
created
src/Element.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.