Test Failed
Pull Request — master (#1190)
by butschster
10:27
created
src/Boot/tests/BootloadManager/BootloadersTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
                 SampleBoot::class,
31 31
             ],
32 32
             [
33
-                static function (Container $container, SampleBoot $boot) {
33
+                static function (Container $container, SampleBoot $boot){
34 34
                     $container->bind('efg', $boot);
35 35
                 },
36 36
             ],
37 37
             [
38
-                static function (Container $container, SampleBoot $boot) {
38
+                static function (Container $container, SampleBoot $boot){
39 39
                     $container->bind('ghi', $boot);
40 40
                 },
41 41
             ],
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $bootloader = $this->getBootloadManager();
98 98
 
99 99
         $bootloader->bootload([
100
-            new class () extends Bootloader {
100
+            new class () extends Bootloader{
101 101
                 public const BINDINGS = ['abc' => self::class];
102 102
                 public const SINGLETONS = ['single' => self::class];
103 103
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,12 +30,14 @@  discard block
 block discarded – undo
30 30
                 SampleBoot::class,
31 31
             ],
32 32
             [
33
-                static function (Container $container, SampleBoot $boot) {
33
+                static function (Container $container, SampleBoot $boot)
34
+                {
34 35
                     $container->bind('efg', $boot);
35 36
                 },
36 37
             ],
37 38
             [
38
-                static function (Container $container, SampleBoot $boot) {
39
+                static function (Container $container, SampleBoot $boot)
40
+                {
39 41
                     $container->bind('ghi', $boot);
40 42
                 },
41 43
             ],
@@ -97,7 +99,8 @@  discard block
 block discarded – undo
97 99
         $bootloader = $this->getBootloadManager();
98 100
 
99 101
         $bootloader->bootload([
100
-            new class () extends Bootloader {
102
+            new class () extends Bootloader
103
+            {
101 104
                 public const BINDINGS = ['abc' => self::class];
102 105
                 public const SINGLETONS = ['single' => self::class];
103 106
 
Please login to merge, or discard this patch.
src/Boot/tests/Fixtures/BootloaderR.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 class BootloaderR extends Bootloader
11 11
 {
12 12
     #[BindMethod]
13
-    private function bind(): SampleClass|SampleClassInterface
13
+    private function bind(): SampleClass | SampleClassInterface
14 14
     {
15 15
         return new SampleClass();
16 16
     }
Please login to merge, or discard this patch.
src/Boot/tests/Fixtures/SampleBootWithMethodBoot.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
     }
44 44
 
45 45
     #[BindMethod]
46
-    private function bindMethodC(): SampleClass2|string|int
46
+    private function bindMethodC(): SampleClass2 | string | int
47 47
     {
48 48
         return new SampleClass2();
49 49
     }
50 50
 
51 51
     #[BindMethod]
52
-    private function bindMethodD(): SampleClass|SampleClassInterface
52
+    private function bindMethodD(): SampleClass | SampleClassInterface
53 53
     {
54 54
         return new SampleClass();
55 55
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     }
68 68
 
69 69
     #[SampleMethod('sampleMethod')]
70
-    private function sampleMethod(): SampleClass|string|int
70
+    private function sampleMethod(): SampleClass | string | int
71 71
     {
72 72
         return new SampleClass();
73 73
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     #[InjectorMethod(alias: SampleInjectableClass::class)]
76 76
     protected function sampleInjector(): InjectorInterface
77 77
     {
78
-        return new class implements InjectorInterface {
78
+        return new class implements InjectorInterface{
79 79
             public function createInjection(\ReflectionClass $class, ?string $context = null): object
80 80
             {
81 81
                 return new SampleInjectableClass('foo');
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,8 @@
 block discarded – undo
75 75
     #[InjectorMethod(alias: SampleInjectableClass::class)]
76 76
     protected function sampleInjector(): InjectorInterface
77 77
     {
78
-        return new class implements InjectorInterface {
78
+        return new class implements InjectorInterface
79
+        {
79 80
             public function createInjection(\ReflectionClass $class, ?string $context = null): object
80 81
             {
81 82
                 return new SampleInjectableClass('foo');
Please login to merge, or discard this patch.
src/Boot/tests/Fixtures/SampleInjectableClass.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,5 +8,5 @@
 block discarded – undo
8 8
 {
9 9
     public function __construct(
10 10
         public string $name,
11
-    ) {}
11
+    ){}
12 12
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,5 +8,6 @@
 block discarded – undo
8 8
 {
9 9
     public function __construct(
10 10
         public string $name,
11
-    ) {}
11
+    ) {
12
+}
12 13
 }
Please login to merge, or discard this patch.
src/Boot/tests/Fixtures/SampleClassInterface.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,4 +4,4 @@
 block discarded – undo
4 4
 
5 5
 namespace Spiral\Tests\Boot\Fixtures;
6 6
 
7
-interface SampleClassInterface {}
7
+interface SampleClassInterface{}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,4 +4,6 @@
 block discarded – undo
4 4
 
5 5
 namespace Spiral\Tests\Boot\Fixtures;
6 6
 
7
-interface SampleClassInterface {}
7
+interface SampleClassInterface
8
+{
9
+}
Please login to merge, or discard this patch.
src/Boot/tests/Fixtures/BootloaderM.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 class BootloaderM extends Bootloader
11 11
 {
12 12
     #[SingletonMethod]
13
-    private function bind(): int|object
13
+    private function bind(): int | object
14 14
     {
15 15
         return new SampleClass2();
16 16
     }
Please login to merge, or discard this patch.
src/Boot/tests/Fixtures/SampleClass2.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,4 +4,4 @@
 block discarded – undo
4 4
 
5 5
 namespace Spiral\Tests\Boot\Fixtures;
6 6
 
7
-class SampleClass2 {}
7
+class SampleClass2{}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,4 +4,6 @@
 block discarded – undo
4 4
 
5 5
 namespace Spiral\Tests\Boot\Fixtures;
6 6
 
7
-class SampleClass2 {}
7
+class SampleClass2
8
+{
9
+}
Please login to merge, or discard this patch.
src/Boot/tests/Fixtures/BootloaderL.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 class BootloaderL extends Bootloader
11 11
 {
12 12
     #[BindMethod]
13
-    private function bind(): int|string|object
13
+    private function bind(): int | string | object
14 14
     {
15 15
         return new SampleClass2();
16 16
     }
Please login to merge, or discard this patch.
src/Boot/tests/Fixtures/Attribute/SampleMethod.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,4 +6,4 @@
 block discarded – undo
6 6
 
7 7
 
8 8
 #[\Attribute(\Attribute::TARGET_METHOD)]
9
-final class SampleMethod extends \Spiral\Boot\Attribute\AbstractMethod {}
9
+final class SampleMethod extends \Spiral\Boot\Attribute\AbstractMethod{}
Please login to merge, or discard this patch.