Passed
Pull Request — master (#1221)
by Aleksei
12:41
created
src/Core/src/Config/WeakReference.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     public function __construct(
13 13
         public \WeakReference $reference,
14
-    ) {}
14
+    ){}
15 15
 
16 16
     public function __toString(): string
17 17
     {
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,8 @@
 block discarded – undo
11 11
 {
12 12
     public function __construct(
13 13
         public \WeakReference $reference,
14
-    ) {}
14
+    ) {
15
+}
15 16
 
16 17
     public function __toString(): string
17 18
     {
Please login to merge, or discard this patch.
src/Core/src/Config/Autowire.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public function __construct(
15 15
         public readonly AutowireAlias $autowire,
16 16
         public readonly bool $singleton = false,
17
-    ) {}
17
+    ){}
18 18
 
19 19
     public function __toString(): string
20 20
     {
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@
 block discarded – undo
14 14
     public function __construct(
15 15
         public readonly AutowireAlias $autowire,
16 16
         public readonly bool $singleton = false,
17
-    ) {}
17
+    ) {
18
+}
18 19
 
19 20
     public function __toString(): string
20 21
     {
Please login to merge, or discard this patch.
src/Core/src/Config/Alias.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public function __construct(
13 13
         public readonly string $alias,
14 14
         public readonly bool $singleton = false,
15
-    ) {}
15
+    ){}
16 16
 
17 17
     public function __toString(): string
18 18
     {
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,8 @@
 block discarded – undo
12 12
     public function __construct(
13 13
         public readonly string $alias,
14 14
         public readonly bool $singleton = false,
15
-    ) {}
15
+    ) {
16
+}
16 17
 
17 18
     public function __toString(): string
18 19
     {
Please login to merge, or discard this patch.
src/Core/src/Config/Injectable.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
      * @param string|InjectorInterface $injector Injector object or binding alias.
18 18
      */
19 19
     public function __construct(
20
-        public readonly string|InjectorInterface $injector,
21
-    ) {}
20
+        public readonly string | InjectorInterface $injector,
21
+    ){}
22 22
 
23 23
     public function __toString(): string
24 24
     {
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
18 18
      */
19 19
     public function __construct(
20 20
         public readonly string|InjectorInterface $injector,
21
-    ) {}
21
+    ) {
22
+}
22 23
 
23 24
     public function __toString(): string
24 25
     {
Please login to merge, or discard this patch.
src/Core/src/Exception/Container/InjectionException.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,4 +7,4 @@
 block discarded – undo
7 7
 /**
8 8
  * Rare cases when spiral container can't resolve controllable injection.
9 9
  */
10
-class InjectionException extends ContainerException {}
10
+class InjectionException extends ContainerException{}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,4 +7,6 @@
 block discarded – undo
7 7
 /**
8 8
  * Rare cases when spiral container can't resolve controllable injection.
9 9
  */
10
-class InjectionException extends ContainerException {}
10
+class InjectionException extends ContainerException
11
+{
12
+}
Please login to merge, or discard this patch.
src/Core/src/Exception/Container/NotCallableException.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\Core\Exception\Container;
6 6
 
7
-class NotCallableException extends ContainerException {}
7
+class NotCallableException extends ContainerException{}
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\Core\Exception\Container;
6 6
 
7
-class NotCallableException extends ContainerException {}
7
+class NotCallableException extends ContainerException
8
+{
9
+}
Please login to merge, or discard this patch.
src/Core/src/Exception/Container/ContainerException.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,4 +10,4 @@
 block discarded – undo
10 10
 /**
11 11
  * Something inside container.
12 12
  */
13
-class ContainerException extends RuntimeException implements ContainerExceptionInterface {}
13
+class ContainerException extends RuntimeException implements ContainerExceptionInterface{}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,4 +10,6 @@
 block discarded – undo
10 10
 /**
11 11
  * Something inside container.
12 12
  */
13
-class ContainerException extends RuntimeException implements ContainerExceptionInterface {}
13
+class ContainerException extends RuntimeException implements ContainerExceptionInterface
14
+{
15
+}
Please login to merge, or discard this patch.
src/Core/src/Exception/Container/ArgumentException.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
     public function __construct(
17 17
         protected \ReflectionParameter $parameter,
18 18
         protected \ReflectionFunctionAbstract $context,
19
-    ) {
19
+    ){
20 20
         $name = $context->getName();
21
-        if ($context instanceof \ReflectionMethod) {
22
-            $name = $context->class . '::' . $name;
21
+        if ($context instanceof \ReflectionMethod){
22
+            $name = $context->class.'::'.$name;
23 23
         }
24 24
 
25 25
         parent::__construct(\sprintf("Unable to resolve '%s' argument in '%s'", $parameter->name, $name));
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
18 18
         protected \ReflectionFunctionAbstract $context,
19 19
     ) {
20 20
         $name = $context->getName();
21
-        if ($context instanceof \ReflectionMethod) {
21
+        if ($context instanceof \ReflectionMethod)
22
+        {
22 23
             $name = $context->class . '::' . $name;
23 24
         }
24 25
 
Please login to merge, or discard this patch.
src/Core/src/Exception/Container/NotFoundException.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
 /**
10 10
  * Caused when container is not able to find the proper binding.
11 11
  */
12
-class NotFoundException extends AutowireException implements NotFoundExceptionInterface {}
12
+class NotFoundException extends AutowireException implements NotFoundExceptionInterface{}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,6 @@
 block discarded – undo
9 9
 /**
10 10
  * Caused when container is not able to find the proper binding.
11 11
  */
12
-class NotFoundException extends AutowireException implements NotFoundExceptionInterface {}
12
+class NotFoundException extends AutowireException implements NotFoundExceptionInterface
13
+{
14
+}
Please login to merge, or discard this patch.