Passed
Push — master ( 3259b8...261523 )
by Aleksei
12:20
created
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.
src/Boot/tests/Fixtures/BootloaderQ.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 BootloaderQ extends Bootloader
11 11
 {
12 12
     #[SingletonMethod]
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/src/BootloadManager/AttributeResolver.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     public function resolve(object $attribute, object $service, \ReflectionMethod $method): void
54 54
     {
55 55
         $attributeClass = $attribute::class;
56
-        if (!isset($this->resolvers[$attributeClass])) {
56
+        if (!isset($this->resolvers[$attributeClass])){
57 57
             throw new \RuntimeException("No resolver for attribute {$attributeClass}");
58 58
         }
59 59
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,8 @@
 block discarded – undo
53 53
     public function resolve(object $attribute, object $service, \ReflectionMethod $method): void
54 54
     {
55 55
         $attributeClass = $attribute::class;
56
-        if (!isset($this->resolvers[$attributeClass])) {
56
+        if (!isset($this->resolvers[$attributeClass]))
57
+        {
57 58
             throw new \RuntimeException("No resolver for attribute {$attributeClass}");
58 59
         }
59 60
 
Please login to merge, or discard this patch.