Passed
Push — main ( fa5e97...1e7c3f )
by Sammy
01:47
created
src/Marker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@  discard block
 block discarded – undo
17 17
       * than
18 18
       * Element::img(null, ['src' => 'path/to/img.jpg', 'alt' => 'An alternative text', 'width' => 34, 'height' => 34])
19 19
       */
20
-    public static function img(string $src, string $alt, array $attributes = [], $formatter=null): Element
20
+    public static function img(string $src, string $alt, array $attributes = [], $formatter = null): Element
21 21
     {
22 22
         $attributes['src'] ??= $src;
23 23
         $attributes['alt'] ??= $alt;
24 24
         $attributes['title'] ??= $alt;
25 25
 
26
-        return new Element('img', null,$attributes, $formatter);
26
+        return new Element('img', null, $attributes, $formatter);
27 27
     }
28 28
 
29 29
     /**
@@ -36,6 +36,6 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $attributes['href'] = $href;
38 38
 
39
-        return new Element('a', $label,$attributes, $formatter);
39
+        return new Element('a', $label, $attributes, $formatter);
40 40
     }
41 41
 }
Please login to merge, or discard this patch.