Test Failed
Pull Request — master (#1190)
by butschster
10:27
created
src/Framework/Filter/JsonErrorsRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 {
13 13
     public function __construct(
14 14
         private readonly ResponseWrapper $wrapper
15
-    ) {
15
+    ){
16 16
     }
17 17
 
18 18
     public function render(array $errors, mixed $context = null): ResponseInterface
Please login to merge, or discard this patch.
src/Queue/src/Options.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -107,14 +107,14 @@  discard block
 block discarded – undo
107 107
      * @param non-empty-string $name
108 108
      * @param non-empty-string|array<non-empty-string> $value
109 109
      */
110
-    public function withHeader(string $name, string|array $value): self
110
+    public function withHeader(string $name, string | array $value): self
111 111
     {
112 112
         $value = \is_iterable($value) ? $value : [$value];
113 113
 
114 114
         $self = clone $this;
115 115
         $self->headers[$name] = [];
116 116
 
117
-        foreach ($value as $item) {
117
+        foreach ($value as $item){
118 118
             $self->headers[$name][] = $item;
119 119
         }
120 120
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      * @param non-empty-string $name
126 126
      * @param non-empty-string|array<non-empty-string> $value
127 127
      */
128
-    public function withAddedHeader(string $name, string|array $value): self
128
+    public function withAddedHeader(string $name, string | array $value): self
129 129
     {
130 130
         /** @var iterable<non-empty-string> $value */
131 131
         $value = \is_iterable($value) ? $value : [$value];
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         /** @var array<non-empty-string> $headers */
134 134
         $headers = $this->headers[$name] ?? [];
135 135
 
136
-        foreach ($value as $item) {
136
+        foreach ($value as $item){
137 137
             $headers[] = $item;
138 138
         }
139 139
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function withoutHeader(string $name): self
147 147
     {
148
-        if (!isset($this->headers[$name])) {
148
+        if (!isset($this->headers[$name])){
149 149
             return $this;
150 150
         }
151 151
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,7 +114,8 @@  discard block
 block discarded – undo
114 114
         $self = clone $this;
115 115
         $self->headers[$name] = [];
116 116
 
117
-        foreach ($value as $item) {
117
+        foreach ($value as $item)
118
+        {
118 119
             $self->headers[$name][] = $item;
119 120
         }
120 121
 
@@ -133,7 +134,8 @@  discard block
 block discarded – undo
133 134
         /** @var array<non-empty-string> $headers */
134 135
         $headers = $this->headers[$name] ?? [];
135 136
 
136
-        foreach ($value as $item) {
137
+        foreach ($value as $item)
138
+        {
137 139
             $headers[] = $item;
138 140
         }
139 141
 
@@ -145,7 +147,8 @@  discard block
 block discarded – undo
145 147
      */
146 148
     public function withoutHeader(string $name): self
147 149
     {
148
-        if (!isset($this->headers[$name])) {
150
+        if (!isset($this->headers[$name]))
151
+        {
149 152
             return $this;
150 153
         }
151 154
 
Please login to merge, or discard this patch.
src/Core/tests/Internal/Resolver/CommonCasesTest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $this->expectExceptionMessage('Enum `Spiral\Tests\Core\Stub\EnumObject` can not be constructed.');
64 64
 
65 65
         $this->resolveClosure(
66
-            static function (EnumObject $enum) {},
66
+            static function (EnumObject $enum){},
67 67
         );
68 68
     }
69 69
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         );
76 76
 
77 77
         $this->resolveClosure(
78
-            static function (TestTrait $enum) {},
78
+            static function (TestTrait $enum){},
79 79
         );
80 80
     }
81 81
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,9 @@  discard block
 block discarded – undo
63 63
         $this->expectExceptionMessage('Enum `Spiral\Tests\Core\Stub\EnumObject` can not be constructed.');
64 64
 
65 65
         $this->resolveClosure(
66
-            static function (EnumObject $enum) {},
66
+            static function (EnumObject $enum)
67
+            {
68
+},
67 69
         );
68 70
     }
69 71
 
@@ -75,7 +77,9 @@  discard block
 block discarded – undo
75 77
         );
76 78
 
77 79
         $this->resolveClosure(
78
-            static function (TestTrait $enum) {},
80
+            static function (TestTrait $enum)
81
+            {
82
+},
79 83
         );
80 84
     }
81 85
 }
Please login to merge, or discard this patch.
src/Queue/src/ExtendedOptionsInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,13 +32,13 @@
 block discarded – undo
32 32
      * @param non-empty-string $name
33 33
      * @param non-empty-string|array<non-empty-string> $value
34 34
      */
35
-    public function withHeader(string $name, string|array $value): self;
35
+    public function withHeader(string $name, string | array $value): self;
36 36
 
37 37
     /**
38 38
      * @param non-empty-string $name
39 39
      * @param non-empty-string|array<non-empty-string> $value
40 40
      */
41
-    public function withAddedHeader(string $name, string|array $value): self;
41
+    public function withAddedHeader(string $name, string | array $value): self;
42 42
 
43 43
     /**
44 44
      * @param non-empty-string $name
Please login to merge, or discard this patch.
src/Queue/src/Job/CallableJob.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,16 +12,16 @@
 block discarded – undo
12 12
 {
13 13
     public function __construct(
14 14
         private readonly InvokerInterface $invoker
15
-    ) {
15
+    ){
16 16
     }
17 17
 
18 18
     public function handle(string $name, string $id, array $payload, array $headers = []): void
19 19
     {
20
-        if (!isset($payload['callback'])) {
20
+        if (!isset($payload['callback'])){
21 21
             throw new InvalidArgumentException('Payload `callback` key is required.');
22 22
         }
23 23
 
24
-        if (!$payload['callback'] instanceof \Closure) {
24
+        if (!$payload['callback'] instanceof \Closure){
25 25
             throw new InvalidArgumentException('Payload `callback` key value type should be a closure.');
26 26
         }
27 27
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,11 +17,13 @@
 block discarded – undo
17 17
 
18 18
     public function handle(string $name, string $id, array $payload, array $headers = []): void
19 19
     {
20
-        if (!isset($payload['callback'])) {
20
+        if (!isset($payload['callback']))
21
+        {
21 22
             throw new InvalidArgumentException('Payload `callback` key is required.');
22 23
         }
23 24
 
24
-        if (!$payload['callback'] instanceof \Closure) {
25
+        if (!$payload['callback'] instanceof \Closure)
26
+        {
25 27
             throw new InvalidArgumentException('Payload `callback` key value type should be a closure.');
26 28
         }
27 29
 
Please login to merge, or discard this patch.
src/Queue/src/Job/ObjectJob.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,16 +12,16 @@
 block discarded – undo
12 12
 {
13 13
     public function __construct(
14 14
         private readonly InvokerInterface $invoker
15
-    ) {
15
+    ){
16 16
     }
17 17
 
18 18
     public function handle(string $name, string $id, array $payload, array $headers = []): void
19 19
     {
20
-        if (!isset($payload['object'])) {
20
+        if (!isset($payload['object'])){
21 21
             throw new InvalidArgumentException('Payload `object` key is required.');
22 22
         }
23 23
 
24
-        if (!\is_object($payload['object'])) {
24
+        if (!\is_object($payload['object'])){
25 25
             throw new InvalidArgumentException('Payload `object` key value type should be an object.');
26 26
         }
27 27
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,11 +17,13 @@
 block discarded – undo
17 17
 
18 18
     public function handle(string $name, string $id, array $payload, array $headers = []): void
19 19
     {
20
-        if (!isset($payload['object'])) {
20
+        if (!isset($payload['object']))
21
+        {
21 22
             throw new InvalidArgumentException('Payload `object` key is required.');
22 23
         }
23 24
 
24
-        if (!\is_object($payload['object'])) {
25
+        if (!\is_object($payload['object']))
26
+        {
25 27
             throw new InvalidArgumentException('Payload `object` key value type should be an object.');
26 28
         }
27 29
 
Please login to merge, or discard this patch.
src/Events/tests/Config/EventsConfigTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         $config = new EventsConfig([
65 65
             'interceptors' => [
66 66
                 'bar',
67
-                new class implements CoreInterceptorInterface {
67
+                new class implements CoreInterceptorInterface{
68 68
                     public function process(string $controller, string $action, array $parameters, CoreInterface $core): mixed
69 69
                     {
70 70
                     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,8 @@
 block discarded – undo
64 64
         $config = new EventsConfig([
65 65
             'interceptors' => [
66 66
                 'bar',
67
-                new class implements CoreInterceptorInterface {
67
+                new class implements CoreInterceptorInterface
68
+                {
68 69
                     public function process(string $controller, string $action, array $parameters, CoreInterface $core): mixed
69 70
                     {
70 71
                     }
Please login to merge, or discard this patch.
src/Events/tests/EventDispatcherTest.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,9 @@
 block discarded – undo
13 13
 {
14 14
     public function testDispatch(): void
15 15
     {
16
-        $event = new class() {};
16
+        $event = new class()
17
+        {
18
+};
17 19
 
18 20
         $core = m::mock(CoreInterface::class);
19 21
         $core
Please login to merge, or discard this patch.
src/Events/tests/Interceptor/CoreTest.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,9 @@
 block discarded – undo
13 13
 {
14 14
     public function testCallAction(): void
15 15
     {
16
-        $event = new class() {};
16
+        $event = new class()
17
+        {
18
+};
17 19
 
18 20
         $dispatcher = m::mock(EventDispatcherInterface::class);
19 21
         $dispatcher
Please login to merge, or discard this patch.