Passed
Pull Request — main (#4)
by Peter
06:09 queued 03:14
created
src/Html/Factory/Button.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         ?array $attributes = null,
79 79
         ?string $tag = Html5::TAG_A
80 80
     ): ButtonComponent {
81
-        $attributes                   ??= [];
81
+        $attributes ??= [];
82 82
         $attributes[Html5::ATTR_HREF] = new Attribute(Html5::ATTR_HREF, $url);
83 83
 
84 84
         if ($icon) {
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     ): ButtonComponent {
120 120
         $url = $this->urlGenerator->createFromName($urlName, ...$urlArgs);
121 121
 
122
-        $attributes                   ??= [];
122
+        $attributes ??= [];
123 123
         $attributes[Html5::ATTR_HREF] = new Attribute(Html5::ATTR_HREF, $url);
124 124
 
125 125
         if ($icon) {
Please login to merge, or discard this patch.
src/Html/Helper/Attributes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
      */
123 123
     public static function isEqual(?array $attributes, ?array $attributes2): bool
124 124
     {
125
-        $attributes  ??= [];
125
+        $attributes ??= [];
126 126
         $attributes2 ??= [];
127 127
 
128 128
         if (count($attributes) != count($attributes2)) {
Please login to merge, or discard this patch.
tests/Grid/Action/ActionTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         $this->expectException(\InvalidArgumentException::class);
24 24
 
25
-        new Action(null, [], null, ['foo' => fn () => true]);
25
+        new Action(null, [], null, ['foo' => fn() => true]);
26 26
     }
27 27
 
28 28
     /**
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
 
44 44
         return [
45 45
             'simple'               => ['Button', null, [], null, null, "<button>Button</button>"],
46
-            'with attributes'      => ['Button', $attributes, [], null, null, "<button$str>Button</button>",],
46
+            'with attributes'      => ['Button', $attributes, [], null, null, "<button$str>Button</button>", ],
47 47
             'missing translations' => ['Button', null, [], [], null, "<button>Button</button>"],
48 48
             'custom tag'           => ['Button', null, [], null, 'mybutton', "<mybutton>Button</mybutton>"],
49 49
             'with translations'    => ['Button', null, [], ['Button' => 'Gomb'], null, "<button>Gomb</button>"],
50
-            'with callbacks'       => ['Button', $attributes, $callbacks, null, null, "<button$str>Button</button>",],
50
+            'with callbacks'       => ['Button', $attributes, $callbacks, null, null, "<button$str>Button</button>", ],
51 51
         ];
52 52
     }
53 53
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     {
152 152
         $this->expectException(LogicException::class);
153 153
 
154
-        $sut = new Action(null, [], ['foo' => new Attribute('foo')], ['foo' => fn () => true]);
154
+        $sut = new Action(null, [], ['foo' => new Attribute('foo')], ['foo' => fn() => true]);
155 155
 
156 156
         $sut->removeAttribute('foo');
157 157
     }
Please login to merge, or discard this patch.
src/Debug/Exceptions/Handlers/Whoops/ExceptionRenderer.php 5 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,6 +185,4 @@
 block discarded – undo
185 185
      */
186 186
     public function getHeaders(): array
187 187
     {
188
-        return $this->headers;
189
-    }
190
-}
188
+        return $this->headers
191 189
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,6 +185,4 @@
 block discarded – undo
185 185
      */
186 186
     public function getHeaders(): array
187 187
     {
188
-        return $this->headers;
189
-    }
190
-}
188
+        return $this->headers
191 189
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,6 +185,4 @@
 block discarded – undo
185 185
      */
186 186
     public function getHeaders(): array
187 187
     {
188
-        return $this->headers;
189
-    }
190
-}
188
+        return $this->headers
191 189
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,6 +185,4 @@
 block discarded – undo
185 185
      */
186 186
     public function getHeaders(): array
187 187
     {
188
-        return $this->headers;
189
-    }
190
-}
188
+        return $this->headers
191 189
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,6 +185,4 @@
 block discarded – undo
185 185
      */
186 186
     public function getHeaders(): array
187 187
     {
188
-        return $this->headers;
189
-    }
190
-}
188
+        return $this->headers
191 189
\ No newline at end of file
Please login to merge, or discard this patch.