Test Failed
Pull Request — master (#1170)
by Aleksei
19:12 queued 08:18
created
src/Boot/tests/Environment/DebugModeTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@
 block discarded – undo
33 33
 
34 34
         $this->assertSame($expected, $enum);
35 35
 
36
-        if ($enum === DebugMode::Enabled) {
36
+        if ($enum === DebugMode::Enabled){
37 37
             $this->assertTrue($enum->isEnabled());
38
-        } else {
38
+        }else{
39 39
             $this->assertFalse($enum->isEnabled());
40 40
         }
41 41
     }
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,9 +33,12 @@
 block discarded – undo
33 33
 
34 34
         $this->assertSame($expected, $enum);
35 35
 
36
-        if ($enum === DebugMode::Enabled) {
36
+        if ($enum === DebugMode::Enabled)
37
+        {
37 38
             $this->assertTrue($enum->isEnabled());
38
-        } else {
39
+        }
40
+        else
41
+        {
39 42
             $this->assertFalse($enum->isEnabled());
40 43
         }
41 44
     }
Please login to merge, or discard this patch.
src/Boot/tests/FunctionsTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     {
19 19
         $core = TestCore::create([
20 20
             'root'   => __DIR__,
21
-            'config' => __DIR__ . '/config',
21
+            'config' => __DIR__.'/config',
22 22
         ])->run();
23 23
 
24 24
         /** @var ContainerInterface $c */
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         $core = TestCore::create([
35 35
             'root'   => __DIR__,
36
-            'config' => __DIR__ . '/config',
36
+            'config' => __DIR__.'/config',
37 37
         ])->run(new Environment([
38 38
             'key' => '(true)',
39 39
         ]));
@@ -50,14 +50,14 @@  discard block
 block discarded – undo
50 50
     {
51 51
         $core = TestCore::create([
52 52
             'root'   => __DIR__,
53
-            'config' => __DIR__ . '/config',
53
+            'config' => __DIR__.'/config',
54 54
         ])->run();
55 55
 
56 56
         /** @var ContainerInterface $c */
57 57
         $c = $core->getContainer();
58 58
 
59 59
         ContainerScope::runScope($c, function (): void {
60
-            $this->assertDir(__DIR__ . '/config', directory('config'));
60
+            $this->assertDir(__DIR__.'/config', directory('config'));
61 61
         });
62 62
     }
63 63
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $core = TestCore::create([
76 76
             'root'   => __DIR__,
77
-            'config' => __DIR__ . '/config',
77
+            'config' => __DIR__.'/config',
78 78
         ])->run();
79 79
 
80 80
         /** @var ContainerInterface $c */
@@ -102,6 +102,6 @@  discard block
 block discarded – undo
102 102
     private function assertDir($path, $value): void
103 103
     {
104 104
         $path = str_replace(['\\', '//'], '/', $path);
105
-        $this->assertSame(rtrim($path, '/') . '/', $value);
105
+        $this->assertSame(rtrim($path, '/').'/', $value);
106 106
     }
107 107
 }
Please login to merge, or discard this patch.
src/Boot/tests/Fixtures/ConfigBootloader.php 1 patch
Braces   +14 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,22 +18,27 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function init(Container $container, AbstractKernel $kernel): void
20 20
     {
21
-        $kernel->booting(static function (AbstractKernel $kernel) use ($container) {
21
+        $kernel->booting(static function (AbstractKernel $kernel) use ($container)
22
+        {
22 23
             $container->bind('hij', 'foo');
23 24
 
24
-            $kernel->booting(static function () use ($container) {
25
+            $kernel->booting(static function () use ($container)
26
+            {
25 27
                 $container->bind('ijk', 'foo');
26 28
             });
27 29
         });
28 30
 
29
-        $kernel->booted(function (AbstractKernel $kernel) use ($container) {
31
+        $kernel->booted(function (AbstractKernel $kernel) use ($container)
32
+        {
30 33
             $container->bind('jkl', 'foo');
31 34
 
32
-            $kernel->booting(function () use ($container) {
35
+            $kernel->booting(function () use ($container)
36
+            {
33 37
                 $container->bind('klm', 'foo');
34 38
             });
35 39
 
36
-            $kernel->booted(function () use ($container) {
40
+            $kernel->booted(function () use ($container)
41
+            {
37 42
                 $container->bind('lmn', 'foo');
38 43
             });
39 44
         });
@@ -44,11 +49,13 @@  discard block
 block discarded – undo
44 49
     public function boot(ConfigurationBootloader $configuration, AbstractKernel $kernel, Container $container): void
45 50
     {
46 51
         // won't be executed
47
-        $kernel->booting(function (AbstractKernel $kernel) use ($container) {
52
+        $kernel->booting(function (AbstractKernel $kernel) use ($container)
53
+        {
48 54
             $container->bind('ghi', 'foo');
49 55
         });
50 56
 
51
-        $kernel->booted(function (AbstractKernel $kernel) use ($container) {
57
+        $kernel->booted(function (AbstractKernel $kernel) use ($container)
58
+        {
52 59
             $container->bind('mno', 'foo');
53 60
         });
54 61
 
Please login to merge, or discard this patch.
src/Boot/tests/Injector/EnumInjectorTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,8 @@
 block discarded – undo
34 34
 
35 35
     public function testCreateInjectionNotForClass(): void
36 36
     {
37
-        $class = new #[ProvideFrom(method: 'test')] class {
37
+        $class = new #[ProvideFrom(method: 'test')] class
38
+        {
38 39
         };
39 40
 
40 41
         $ref = new \ReflectionClass($class);
Please login to merge, or discard this patch.
src/Boot/src/BootloadManager/ClassesRegistry.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function register(string $class): void
24 24
     {
25
-        if ($this->isBooted($class)) {
25
+        if ($this->isBooted($class)){
26 26
             throw new BootloaderAlreadyBootedException($class);
27 27
         }
28 28
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,8 @@
 block discarded – undo
22 22
      */
23 23
     public function register(string $class): void
24 24
     {
25
-        if ($this->isBooted($class)) {
25
+        if ($this->isBooted($class))
26
+        {
26 27
             throw new BootloaderAlreadyBootedException($class);
27 28
         }
28 29
 
Please login to merge, or discard this patch.
src/Boot/src/Directories.php 2 patches
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@  discard block
 block discarded – undo
14 14
     public function __construct(
15 15
         private array $directories = []
16 16
     ) {
17
-        foreach ($directories as $name => $directory) {
17
+        foreach ($directories as $name => $directory)
18
+        {
18 19
             $this->set($name, $directory);
19 20
         }
20 21
     }
@@ -34,7 +35,8 @@  discard block
 block discarded – undo
34 35
 
35 36
     public function get(string $name): string
36 37
     {
37
-        if (!$this->has($name)) {
38
+        if (!$this->has($name))
39
+        {
38 40
             throw new DirectoryException("Undefined directory '{$name}'");
39 41
         }
40 42
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
      */
17 17
     public function __construct(
18 18
         private array $directories = []
19
-    ) {
20
-        foreach ($directories as $name => $directory) {
19
+    ){
20
+        foreach ($directories as $name => $directory){
21 21
             $this->set($name, $directory);
22 22
         }
23 23
     }
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
     public function set(string $name, string $path): DirectoriesInterface
31 31
     {
32 32
         $path = \str_replace(['\\', '//'], '/', $path);
33
-        $this->directories[$name] = \rtrim($path, '/') . '/';
33
+        $this->directories[$name] = \rtrim($path, '/').'/';
34 34
 
35 35
         return $this;
36 36
     }
37 37
 
38 38
     public function get(string $name): string
39 39
     {
40
-        if (!$this->has($name)) {
40
+        if (!$this->has($name)){
41 41
             throw new DirectoryException("Undefined directory '{$name}'");
42 42
         }
43 43
 
Please login to merge, or discard this patch.
src/Boot/src/Event/Finalizing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 {
14 14
     public function __construct(
15 15
         public readonly FinalizerInterface $finalizer
16
-    ) {
16
+    ){
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
src/Boot/src/Event/DispatcherFound.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
 {
15 15
     public function __construct(
16 16
         public readonly DispatcherInterface $dispatcher
17
-    ) {
17
+    ){
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
src/Boot/src/Event/Bootstrapped.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,6 +13,6 @@
 block discarded – undo
13 13
 {
14 14
     public function __construct(
15 15
         public readonly KernelInterface $kernel
16
-    ) {
16
+    ){
17 17
     }
18 18
 }
Please login to merge, or discard this patch.