Passed
Push — main ( c68bbb...afde82 )
by Sammy
06:55
created
src/Marker.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /**
4
-  * HTML generator
5
-  * Marker, hommage to Christian François Bouche-Villeneuve aka Chris Marker
6
-  */
4
+ * HTML generator
5
+ * Marker, hommage to Christian François Bouche-Villeneuve aka Chris Marker
6
+ */
7 7
 
8 8
 declare(strict_types=1);
9 9
 
@@ -13,11 +13,11 @@  discard block
 block discarded – undo
13 13
 {
14 14
 
15 15
     /**
16
-      * ? makes more sense to write
17
-      * Marker::img('path/to/img.jpg', 'An alternative text', ['width' => 34, 'height' => 34])
18
-      * than
19
-      * Marker::img(null, ['src' => 'path/to/img.jpg', 'alt' => 'An alternative text', 'width' => 34, 'height' => 34])
20
-      */
16
+     * ? makes more sense to write
17
+     * Marker::img('path/to/img.jpg', 'An alternative text', ['width' => 34, 'height' => 34])
18
+     * than
19
+     * Marker::img(null, ['src' => 'path/to/img.jpg', 'alt' => 'An alternative text', 'width' => 34, 'height' => 34])
20
+     */
21 21
     public static function img(string $src, string $alt, array $attributes = []): Element
22 22
     {
23 23
         $attributes['src'] ??= $src;
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
     }
29 29
 
30 30
     /**
31
-      * ? makes more sense to write
32
-      * Marker::a('controller/task/id', 'Click here', ['class' => 'nav'])
33
-      * than
34
-      * Marker::a('Click here', ['href' => controller/task/id', 'class' => 'nav'])
35
-      */
31
+     * ? makes more sense to write
32
+     * Marker::a('controller/task/id', 'Click here', ['class' => 'nav'])
33
+     * than
34
+     * Marker::a('Click here', ['href' => controller/task/id', 'class' => 'nav'])
35
+     */
36 36
     public static function a(string $href, string $label, array $attributes = []): Element
37 37
     {
38 38
         $attributes['href'] ??= $href;
Please login to merge, or discard this patch.