Passed
Push — main ( 4e7f76...0d2591 )
by Peter
03:47
created
tests/Html/Component/ButtonTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
                 null,
26 26
                 "<button foo=\"foo baz\" bar=\"bar baz\">Button</button>",
27 27
             ],
28
-            'missing translations' => ['Button', [], null, [], null, "<button>Button</button>",],
28
+            'missing translations' => ['Button', [], null, [], null, "<button>Button</button>", ],
29 29
             'custom tag'           => ['Button', [], null, null, 'mybutton', "<mybutton>Button</mybutton>"],
30 30
             'with translations'    => ['Button', [], null, ['Button' => 'Gomb'], null, "<button>Gomb</button>"],
31 31
         ];
Please login to merge, or discard this patch.
tests/Html/Component/ButtonWithIconTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
         return [
31 31
             'simple'               => [$text, $icon, [], null, null, null, "<button>$iconStr $textStr</button>"],
32
-            'with attributes'      => [$text, $icon, [], $attr, null, null, "<button$str>$iconStr $textStr</button>",],
32
+            'with attributes'      => [$text, $icon, [], $attr, null, null, "<button$str>$iconStr $textStr</button>", ],
33 33
             'missing translations' => [$text, $icon, [], null, [], null, "<button>$iconStr $textStr</button>"],
34 34
             'custom tag'           => [$text, $icon, [], null, null, 'mytag', "<mytag>$iconStr $textStr</mytag>"],
35 35
             'with translations'    => [
Please login to merge, or discard this patch.
tests/Grid/Cell/SortableTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
 
23 23
         return [
24 24
             'simple'               => ['ABC', 'a', '', '', null, null, null, "<th>ABC <a></a></th>"],
25
-            'with attributes'      => ['ABC', 'a', '', '', $attribs, null, null, "<th$str>ABC <a></a></th>",],
26
-            'missing translations' => ['ABC', 'a', '', '', null, [], null, "<th>ABC <a></a></th>",],
25
+            'with attributes'      => ['ABC', 'a', '', '', $attribs, null, null, "<th$str>ABC <a></a></th>", ],
26
+            'missing translations' => ['ABC', 'a', '', '', null, [], null, "<th>ABC <a></a></th>", ],
27 27
             'custom tag'           => ['ABC', 'a', '', '', null, null, 'myth', "<myth>ABC <a></a></myth>"],
28 28
             'with translations'    => ['ABC', 'a', '', '', null, ['ABC' => 'CBA'], null, "<th>CBA <a></a></th>"],
29 29
         ];
Please login to merge, or discard this patch.
tests/Helper/MysqlTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
             'number as int'            => [23.4, \PDO::PARAM_INT, [23.4, \PDO::PARAM_INT]],
23 23
             'false as bool'            => [false, \PDO::PARAM_BOOL, [false, \PDO::PARAM_BOOL]],
24 24
             'true as bool'             => [true, \PDO::PARAM_BOOL, [true, \PDO::PARAM_BOOL]],
25
-            'datetime'                 => [$dateTime, \PDO::PARAM_STR, ['2010-11-27 09:08:59', \PDO::PARAM_STR],],
25
+            'datetime'                 => [$dateTime, \PDO::PARAM_STR, ['2010-11-27 09:08:59', \PDO::PARAM_STR], ],
26 26
             'date'                     => [
27 27
                 $dateTime,
28 28
                 \PDO::PARAM_STR,
Please login to merge, or discard this patch.
tests/Form/Label/ToggleLabelTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
         $str        = Attributes::toString($attributes);
22 22
 
23 23
         return [
24
-            'simple'            => ['a', 'ABC', null, null, null, '<label for="a">ABC</label>',],
25
-            'with attributes'   => ['a', 'ABC', $attributes, null, null, "<label$str for=\"a\">ABC</label>",],
26
-            'with translations' => ['a', 'ABC', null, ['ABC' => 'CBA'], null, '<label for="a">CBA</label>',],
27
-            'custom tag'        => ['a', 'ABC', null, [], 'foo', '<foo for="a">ABC</foo>',],
24
+            'simple'            => ['a', 'ABC', null, null, null, '<label for="a">ABC</label>', ],
25
+            'with attributes'   => ['a', 'ABC', $attributes, null, null, "<label$str for=\"a\">ABC</label>", ],
26
+            'with translations' => ['a', 'ABC', null, ['ABC' => 'CBA'], null, '<label for="a">CBA</label>', ],
27
+            'custom tag'        => ['a', 'ABC', null, [], 'foo', '<foo for="a">ABC</foo>', ],
28 28
         ];
29 29
     }
30 30
 
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.
src/Form/Element/Textarea.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         ?array $attributes = null,
39 39
         ?string $tag = null
40 40
     ) {
41
-        $attributes                 ??= [];
41
+        $attributes ??= [];
42 42
         $attributes = Attributes::addItem($attributes, Html5::ATTR_ID, $inputId);
43 43
         if (!in_array(Html5::ATTR_ROWS, $attributes)) {
44 44
             $attributes = Attributes::addItem($attributes, Html5::ATTR_ROWS, static::DEFAULT_ROW);
Please login to merge, or discard this patch.