Passed
Pull Request — master (#1190)
by butschster
10:50
created
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
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.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     #[InjectorMethod(alias: SampleInjectableClass::class)]
39 39
     protected function sampleInjector(): InjectorInterface
40 40
     {
41
-        return new class implements InjectorInterface {
41
+        return new class implements InjectorInterface{
42 42
             public function createInjection(\ReflectionClass $class, ?string $context = null): object
43 43
             {
44 44
                 return new SampleInjectableClass('foo');
@@ -53,13 +53,13 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
     #[BindMethod]
56
-    private function bindMethodC(): SampleClass2|string|int
56
+    private function bindMethodC(): SampleClass2 | string | int
57 57
     {
58 58
         return new SampleClass2();
59 59
     }
60 60
 
61 61
     #[BindMethod]
62
-    private function bindMethodD(): SampleClass|SampleClassInterface
62
+    private function bindMethodD(): SampleClass | SampleClassInterface
63 63
     {
64 64
         return new SampleClass();
65 65
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     }
78 78
 
79 79
     #[SampleMethod('sampleMethod')]
80
-    private function sampleMethod(): SampleClass|string|int
80
+    private function sampleMethod(): SampleClass | string | int
81 81
     {
82 82
         return new SampleClass();
83 83
     }
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/BootloaderS.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     )]
16 16
     #[BindAlias('sample2')]
17 17
     #[BindAlias('sample3')]
18
-    private function bind(): SampleClass|SampleClassInterface
18
+    private function bind(): SampleClass | SampleClassInterface
19 19
     {
20 20
         return new SampleClass();
21 21
     }
Please login to merge, or discard this patch.
src/Boot/tests/Fixtures/SampleClass3.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 SampleClass3 {}
7
+class SampleClass3{}
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 SampleClass3 {}
7
+class SampleClass3
8
+{
9
+}
Please login to merge, or discard this patch.