Passed
Push — master ( c81bf2...c3afe7 )
by Aleksei
09:08 queued 01:17
created
src/Core/tests/SingletonsTest.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,7 +181,9 @@  discard block
 block discarded – undo
181 181
     public function testHasShouldReturnTrueWhenSingletonIsAlreadyConstructed(): void
182 182
     {
183 183
         $container = new Container();
184
-        $class = new #[Singleton] class {};
184
+        $class = new #[Singleton] class
185
+        {
186
+};
185 187
 
186 188
         self::assertFalse($container->has($class::class));
187 189
 
@@ -194,7 +196,8 @@  discard block
 block discarded – undo
194 196
     {
195 197
         return new
196 198
         #[Singleton]
197
-        class {
199
+        class
200
+        {
198 201
             public string $baz = 'baz';
199 202
         };
200 203
     }
Please login to merge, or discard this patch.
src/Tokenizer/tests/Bootloader/TokenizerListenerBootloaderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $kernel = TestCoreWithTokenizer::create(directories: ['root' => __DIR__], container: $container);
58 58
         $kernel->run();
59 59
 
60
-        self::assertContains(\dirname(__DIR__) . '/Fixtures/Bootloader', $container->get(TokenizerConfig::class)->getDirectories());
60
+        self::assertContains(\dirname(__DIR__).'/Fixtures/Bootloader', $container->get(TokenizerConfig::class)->getDirectories());
61 61
     }
62 62
 
63 63
 }
Please login to merge, or discard this patch.
src/Tokenizer/tests/Attribute/TargetAttributeTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@
 block discarded – undo
20 20
     public function testToString(): void
21 21
     {
22 22
         $attribute = new TargetAttribute('foo');
23
-        self::assertSame('3dc18b19eed74479a03c069dec2e8724', (string) $attribute);
23
+        self::assertSame('3dc18b19eed74479a03c069dec2e8724', (string)$attribute);
24 24
 
25 25
         $attribute = new TargetAttribute('foo', 'bar');
26
-        self::assertSame('52ec767c53f3898bf6de6f6e88125dc8', (string) $attribute);
26
+        self::assertSame('52ec767c53f3898bf6de6f6e88125dc8', (string)$attribute);
27 27
     }
28 28
 
29 29
     public function testFilterAttrWithArgs(): void
Please login to merge, or discard this patch.
src/Tokenizer/tests/Attribute/TargetClassTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
     public function testToString(): void
13 13
     {
14 14
         $attribute = new TargetClass('foo');
15
-        self::assertSame('3319d33aad20ad375d27dcd03c879454', (string) $attribute);
15
+        self::assertSame('3319d33aad20ad375d27dcd03c879454', (string)$attribute);
16 16
 
17 17
         $attribute = new TargetClass('foo', 'bar');
18
-        self::assertSame('a95c8a2cfc901290939df93183ce98d6', (string) $attribute);
18
+        self::assertSame('a95c8a2cfc901290939df93183ce98d6', (string)$attribute);
19 19
     }
20 20
 }
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
src/AuthHttp/tests/Middleware/Firewall/ExceptionFirewallTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
         $response = $http->handle(new ServerRequest('GET', '', ['X-Auth-Token' => $token], 'php://input'));
33 33
 
34
-        self::assertSame('OK', (string) $response->getBody());
34
+        self::assertSame('OK', (string)$response->getBody());
35 35
     }
36 36
 
37 37
     #[DataProvider('failTokensDataProvider')]
@@ -51,6 +51,6 @@  discard block
 block discarded – undo
51 51
         $this->expectException(AuthException::class);
52 52
         $response = $http->handle(new ServerRequest('GET', '', ['X-Auth-Token' => $token], 'php://input'));
53 53
 
54
-        self::assertSame('OK', (string) $response->getBody());
54
+        self::assertSame('OK', (string)$response->getBody());
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
src/Scaffolder/tests/Command/InfoCommandTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
             'create:jobHandler',
24 24
         ];
25 25
 
26
-        foreach ($strings as $string) {
26
+        foreach ($strings as $string){
27 27
             self::assertStringContainsString($string, $result);
28 28
         }
29 29
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,8 @@
 block discarded – undo
23 23
             'create:jobHandler',
24 24
         ];
25 25
 
26
-        foreach ($strings as $string) {
26
+        foreach ($strings as $string)
27
+        {
27 28
             self::assertStringContainsString($string, $result);
28 29
         }
29 30
     }
Please login to merge, or discard this patch.
src/Scaffolder/tests/Command/ConfigTest.php 2 patches
Braces   +13 added lines, -6 removed lines patch added patch discarded remove patch
@@ -130,17 +130,22 @@  discard block
 block discarded – undo
130 130
         ];
131 131
 
132 132
         $reflectionMethods = [];
133
-        foreach ($reflection->getMethods() as $method) {
134
-            if ($method->getDeclaringClass()->name !== $reflection->name) {
133
+        foreach ($reflection->getMethods() as $method)
134
+        {
135
+            if ($method->getDeclaringClass()->name !== $reflection->name)
136
+            {
135 137
                 continue;
136 138
             }
137 139
 
138 140
             $reflectionMethods[$method->name] = $method;
139 141
             self::assertArrayHasKey($method->name, $methods);
140 142
 
141
-            if (!$method->hasReturnType()) {
143
+            if (!$method->hasReturnType())
144
+            {
142 145
                 self::assertNull($methods[$method->name]['hint']);
143
-            } else {
146
+            }
147
+            else
148
+            {
144 149
                 self::assertEquals($methods[$method->name]['hint'], $method->getReturnType()->getName());
145 150
             }
146 151
         }
@@ -180,8 +185,10 @@  discard block
 block discarded – undo
180 185
         ];
181 186
 
182 187
         $reflectionMethods = [];
183
-        foreach ($reflection->getMethods() as $method) {
184
-            if ($method->getDeclaringClass()->name !== $reflection->name) {
188
+        foreach ($reflection->getMethods() as $method)
189
+        {
190
+            if ($method->getDeclaringClass()->name !== $reflection->name)
191
+            {
185 192
                 continue;
186 193
             }
187 194
             $reflectionMethods[$method->name] = $method;
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -127,17 +127,17 @@  discard block
 block discarded – undo
127 127
         ];
128 128
 
129 129
         $reflectionMethods = [];
130
-        foreach ($reflection->getMethods() as $method) {
131
-            if ($method->getDeclaringClass()->name !== $reflection->name) {
130
+        foreach ($reflection->getMethods() as $method){
131
+            if ($method->getDeclaringClass()->name !== $reflection->name){
132 132
                 continue;
133 133
             }
134 134
 
135 135
             $reflectionMethods[$method->name] = $method;
136 136
             self::assertArrayHasKey($method->name, $methods);
137 137
 
138
-            if (!$method->hasReturnType()) {
138
+            if (!$method->hasReturnType()){
139 139
                 self::assertNull($methods[$method->name]['hint']);
140
-            } else {
140
+            }else{
141 141
                 self::assertEquals($methods[$method->name]['hint'], $method->getReturnType()->getName());
142 142
             }
143 143
         }
@@ -177,8 +177,8 @@  discard block
 block discarded – undo
177 177
         ];
178 178
 
179 179
         $reflectionMethods = [];
180
-        foreach ($reflection->getMethods() as $method) {
181
-            if ($method->getDeclaringClass()->name !== $reflection->name) {
180
+        foreach ($reflection->getMethods() as $method){
181
+            if ($method->getDeclaringClass()->name !== $reflection->name){
182 182
                 continue;
183 183
             }
184 184
             $reflectionMethods[$method->name] = $method;
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
 
264 264
         \clearstatcache();
265 265
 
266
-        $filename = $this->app->directory('config') . "$name.php";
266
+        $filename = $this->app->directory('config')."$name.php";
267 267
         self::assertFileExists($filename);
268 268
 
269 269
         return $filename;
Please login to merge, or discard this patch.
src/Models/tests/DataEntityTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         self::assertSame([], $entity->getValue());
69 69
 
70 70
         $entity['a'] = 90;
71
-        foreach ($entity as $key => $value) {
71
+        foreach ($entity as $key => $value){
72 72
             self::assertSame('a', $key);
73 73
             self::assertSame(90, $value);
74 74
         }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,8 @@
 block discarded – undo
68 68
         self::assertSame([], $entity->getValue());
69 69
 
70 70
         $entity['a'] = 90;
71
-        foreach ($entity as $key => $value) {
71
+        foreach ($entity as $key => $value)
72
+        {
72 73
             self::assertSame('a', $key);
73 74
             self::assertSame(90, $value);
74 75
         }
Please login to merge, or discard this patch.
src/Snapshots/tests/FileSnapshotTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     {
21 21
         $this->files = new Files();
22 22
         $this->fileSnapshot = new FileSnapshot(
23
-            __DIR__ . '/snapshots',
23
+            __DIR__.'/snapshots',
24 24
             1,
25 25
             Verbosity::DEBUG,
26 26
             new PlainRenderer(),
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     protected function tearDown(): void
32 32
     {
33
-        $this->files->deleteDirectory(__DIR__ . '/snapshots');
33
+        $this->files->deleteDirectory(__DIR__.'/snapshots');
34 34
     }
35 35
 
36 36
     public function testCreate(): void
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         self::assertStringContainsString('message', $s->getMessage());
45 45
         self::assertStringContainsString(__FILE__, $s->getMessage());
46 46
         self::assertStringContainsString('38', $s->getMessage());
47
-        self::assertCount(1, $this->files->getFiles(__DIR__ . '/snapshots'));
47
+        self::assertCount(1, $this->files->getFiles(__DIR__.'/snapshots'));
48 48
     }
49 49
 
50 50
     public function testCreateBiggerThanMaxFiles(): void
@@ -58,6 +58,6 @@  discard block
 block discarded – undo
58 58
         self::assertSame($e, $s->getException());
59 59
         self::assertSame($e2, $s2->getException());
60 60
 
61
-        self::assertCount(1, $this->files->getFiles(__DIR__ . '/snapshots'));
61
+        self::assertCount(1, $this->files->getFiles(__DIR__.'/snapshots'));
62 62
     }
63 63
 }
Please login to merge, or discard this patch.