Passed
Push — main ( 191848...37e0be )
by Peter
03:20
created
src/Http/Middleware/EnvironmentWarning.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     protected function getWarningHtml(string $environmentName): string
59 59
     {
60
-        $styles  = [
60
+        $styles = [
61 61
             'color'       => 'white',
62 62
             'line-height' => '1em',
63 63
             'font-weight' => 'bold',
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $this->translator->translate('admin:environment', $environmentName)
69 69
         );
70 70
 
71
-        $styles  = [
71
+        $styles = [
72 72
             'position'   => 'fixed',
73 73
             'bottom'     => '10px',
74 74
             'right'      => '10px',
Please login to merge, or discard this patch.
tests/Template/CacheManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
                 CacheData::PAYLOAD_KEY_SUBTEMPLATES => $cacheData->getSubTemplates(),
99 99
             ]
100 100
         );
101
-        $key     = sprintf(CacheManager::CACHE_KEY_TEMPLATES, $cacheId);
101
+        $key = sprintf(CacheManager::CACHE_KEY_TEMPLATES, $cacheId);
102 102
 
103 103
         $this->cacheBridgeMock->expects($this->once())->method('set')->with($key, $payload, PHP_INT_MAX);
104 104
         $this->cacheBridgeMock->expects($this->once())->method('has')->with($key);
Please login to merge, or discard this patch.
src/Decorator/Rule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $this->defaultClasses    = $defaultClasses;
43 43
         $this->intentClassMap    = $intentClassMap;
44 44
         if (!$callback) {
45
-            $callback = fn ($x) => $x;
45
+            $callback = fn($x) => $x;
46 46
         }
47 47
         $this->callback = $callback;
48 48
     }
Please login to merge, or discard this patch.
src/Bootstrappers/Authorization/EnforcerBootstrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,6 +80,6 @@
 block discarded – undo
80 80
      */
81 81
     public function createCanViewViewFunction(?string $username, Enforcer $enforcer): callable
82 82
     {
83
-        return fn (string $key) => $enforcer->enforce($username, 'admin_resource_' . $key, Role::READ);
83
+        return fn(string $key) => $enforcer->enforce($username, 'admin_resource_' . $key, Role::READ);
84 84
     }
85 85
 }
Please login to merge, or discard this patch.
src/Bootstrappers/I18n/I18nBootstrapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
         $transpiler = $container->resolve(ITranspiler::class);
176 176
         $transpiler->registerViewFunction(
177 177
             'tr',
178
-            fn (string $key, ...$args) => $translator->translate($key, ...$args)
178
+            fn(string $key, ...$args) => $translator->translate($key, ...$args)
179 179
         );
180 180
     }
181 181
 }
Please login to merge, or discard this patch.
tests/Grid/Component/BodyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $entities[] = $this->createEntity('bar', 2);
68 68
 
69 69
         $getters = [
70
-            'foo' => fn ($entity) => $entity->getFoo(),
70
+            'foo' => fn($entity) => $entity->getFoo(),
71 71
             'bar' => [$entities[0], 'getBar'],
72 72
         ];
73 73
 
Please login to merge, or discard this patch.
tests/Grid/Component/HeaderTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                 '/foo?',
132 132
                 '/foo?sort-A-input=1&sort-B-input=-1&',
133 133
             ],
134
-        ]   ;
134
+        ];
135 135
     }
136 136
 
137 137
     /**
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             ['A' => 'A-input', 'B' => 'B-input'],
148 148
             ['A' => 'a_field', 'b' => 'b_field'],
149 149
             ['a' => 'A', 'b' => 'B']
150
-        )  ;
150
+        );
151 151
 
152 152
         $sut->setParams($params);
153 153
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
             ['A' => 'A-input', 'B' => 'B-input'],
192 192
             ['A' => 'a_field', 'B' => 'b_field'],
193 193
             ['a' => 'A', 'b' => 'B']
194
-        )  ;
194
+        );
195 195
 
196 196
         $sut->setParams($params);
197 197
 
Please login to merge, or discard this patch.
tests/Console/Commands/Security/SecretGeneratorTest.php 5 patches
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -105,6 +105,4 @@
 block discarded – undo
105 105
         $this->sut->execute($responseMock);
106 106
         $content2 = file_get_contents($this->configUrl);
107 107
 
108
-        $this->assertNotSame($content1, $content2);
109
-    }
110
-}
108
+        $this->assertNotSame($content1, $content2
111 109
\ 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
@@ -105,6 +105,4 @@
 block discarded – undo
105 105
         $this->sut->execute($responseMock);
106 106
         $content2 = file_get_contents($this->configUrl);
107 107
 
108
-        $this->assertNotSame($content1, $content2);
109
-    }
110
-}
108
+        $this->assertNotSame($content1, $content2
111 109
\ 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
@@ -105,6 +105,4 @@
 block discarded – undo
105 105
         $this->sut->execute($responseMock);
106 106
         $content2 = file_get_contents($this->configUrl);
107 107
 
108
-        $this->assertNotSame($content1, $content2);
109
-    }
110
-}
108
+        $this->assertNotSame($content1, $content2
111 109
\ 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
@@ -105,6 +105,4 @@
 block discarded – undo
105 105
         $this->sut->execute($responseMock);
106 106
         $content2 = file_get_contents($this->configUrl);
107 107
 
108
-        $this->assertNotSame($content1, $content2);
109
-    }
110
-}
108
+        $this->assertNotSame($content1, $content2
111 109
\ 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
@@ -105,6 +105,4 @@
 block discarded – undo
105 105
         $this->sut->execute($responseMock);
106 106
         $content2 = file_get_contents($this->configUrl);
107 107
 
108
-        $this->assertNotSame($content1, $content2);
109
-    }
110
-}
108
+        $this->assertNotSame($content1, $content2
111 109
\ No newline at end of file
Please login to merge, or discard this patch.
tests/Console/Commands/AbterPhp/FlushCacheTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function testDoExecuteCallsAllDefaultSubCommands(): void
22 22
     {
23
-        $responseMock          = $this
23
+        $responseMock = $this
24 24
             ->getMockBuilder(IResponse::class)
25 25
             ->disableOriginalConstructor()
26 26
             ->getMock();
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     public function testDoExecuteCallsExtraSubCommands(): void
38 38
     {
39
-        $responseMock          = $this
39
+        $responseMock = $this
40 40
             ->getMockBuilder(IResponse::class)
41 41
             ->disableOriginalConstructor()
42 42
             ->getMock();
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     {
57 57
         $ex = new \Exception();
58 58
 
59
-        $responseMock          = $this
59
+        $responseMock = $this
60 60
             ->getMockBuilder(IResponse::class)
61 61
             ->disableOriginalConstructor()
62 62
             ->getMock();
Please login to merge, or discard this patch.