Test Failed
Pull Request — master (#1190)
by butschster
10:27
created
src/Core/tests/Internal/Container/BaseTestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,14 +26,14 @@
 block discarded – undo
26 26
         parent::setUp();
27 27
     }
28 28
 
29
-    protected function bind(string $alias, string|array|callable|object $resolver): void
29
+    protected function bind(string $alias, string | array | callable | object $resolver): void
30 30
     {
31 31
         $binder = $this->constructor->get('binder', BinderInterface::class);
32 32
         \assert($binder instanceof BinderInterface);
33 33
         $binder->bind($alias, $resolver);
34 34
     }
35 35
 
36
-    protected function bindSingleton(string $alias, string|array|callable|object $resolver): void
36
+    protected function bindSingleton(string $alias, string | array | callable | object $resolver): void
37 37
     {
38 38
         $binder = $this->constructor->get('binder', BinderInterface::class);
39 39
         \assert($binder instanceof BinderInterface);
Please login to merge, or discard this patch.
src/Core/tests/Internal/BaseTestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,14 +26,14 @@
 block discarded – undo
26 26
         parent::setUp();
27 27
     }
28 28
 
29
-    protected function bind(string $alias, string|array|callable|object $resolver): void
29
+    protected function bind(string $alias, string | array | callable | object $resolver): void
30 30
     {
31 31
         $binder = $this->constructor->get('binder', BinderInterface::class);
32 32
         \assert($binder instanceof BinderInterface);
33 33
         $binder->bind($alias, $resolver);
34 34
     }
35 35
 
36
-    protected function bindSingleton(string $alias, string|array|callable|object $resolver): void
36
+    protected function bindSingleton(string $alias, string | array | callable | object $resolver): void
37 37
     {
38 38
         $binder = $this->constructor->get('binder', BinderInterface::class);
39 39
         \assert($binder instanceof BinderInterface);
Please login to merge, or discard this patch.
src/Stempler/tests/Syntax/BaseTestCase.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     {
31 31
         $parser = new Parser();
32 32
 
33
-        foreach (static::GRAMMARS as $grammar => $syntax) {
33
+        foreach (static::GRAMMARS as $grammar => $syntax){
34 34
             $parser->addSyntax(new $grammar(), new $syntax());
35 35
         }
36 36
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,8 @@
 block discarded – undo
30 30
     {
31 31
         $parser = new Parser();
32 32
 
33
-        foreach (static::GRAMMARS as $grammar => $syntax) {
33
+        foreach (static::GRAMMARS as $grammar => $syntax)
34
+        {
34 35
             $parser->addSyntax(new $grammar(), new $syntax());
35 36
         }
36 37
 
Please login to merge, or discard this patch.
src/Stempler/tests/Directive/BaseTestCase.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@
 block discarded – undo
42 42
     protected function compile(Template $document): string
43 43
     {
44 44
         $compiler = new Compiler();
45
-        foreach (static::RENDERS as $renderer) {
45
+        foreach (static::RENDERS as $renderer){
46 46
             $compiler->addRenderer(new $renderer());
47 47
         }
48 48
 
49 49
         $directiveGroup = new DirectiveGroup();
50
-        foreach (static::DIRECTIVES as $directive) {
50
+        foreach (static::DIRECTIVES as $directive){
51 51
             $directiveGroup->addDirective(new $directive());
52 52
         }
53 53
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,12 +42,14 @@
 block discarded – undo
42 42
     protected function compile(Template $document): string
43 43
     {
44 44
         $compiler = new Compiler();
45
-        foreach (static::RENDERS as $renderer) {
45
+        foreach (static::RENDERS as $renderer)
46
+        {
46 47
             $compiler->addRenderer(new $renderer());
47 48
         }
48 49
 
49 50
         $directiveGroup = new DirectiveGroup();
50
-        foreach (static::DIRECTIVES as $directive) {
51
+        foreach (static::DIRECTIVES as $directive)
52
+        {
51 53
             $directiveGroup->addDirective(new $directive());
52 54
         }
53 55
 
Please login to merge, or discard this patch.
src/Stempler/tests/Compiler/BaseTestCase.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     protected function compile(Template $document): string
35 35
     {
36 36
         $compiler = new Compiler();
37
-        foreach (static::RENDERS as $renderer) {
37
+        foreach (static::RENDERS as $renderer){
38 38
             $compiler->addRenderer(new $renderer());
39 39
         }
40 40
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     {
50 50
         $parser = new Parser();
51 51
 
52
-        foreach (static::GRAMMARS as $grammar => $syntax) {
52
+        foreach (static::GRAMMARS as $grammar => $syntax){
53 53
             $parser->addSyntax(new $grammar(), new $syntax());
54 54
         }
55 55
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,8 @@  discard block
 block discarded – undo
34 34
     protected function compile(Template $document): string
35 35
     {
36 36
         $compiler = new Compiler();
37
-        foreach (static::RENDERS as $renderer) {
37
+        foreach (static::RENDERS as $renderer)
38
+        {
38 39
             $compiler->addRenderer(new $renderer());
39 40
         }
40 41
 
@@ -49,7 +50,8 @@  discard block
 block discarded – undo
49 50
     {
50 51
         $parser = new Parser();
51 52
 
52
-        foreach (static::GRAMMARS as $grammar => $syntax) {
53
+        foreach (static::GRAMMARS as $grammar => $syntax)
54
+        {
53 55
             $parser->addSyntax(new $grammar(), new $syntax());
54 56
         }
55 57
 
Please login to merge, or discard this patch.
src/Filters/tests/Model/AttributeTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 
10 10
 abstract class AttributeTestCase extends m\Adapter\Phpunit\MockeryTestCase
11 11
 {
12
-    protected m\LegacyMockInterface|m\MockInterface|InputInterface $input;
12
+    protected m\LegacyMockInterface | m\MockInterface | InputInterface $input;
13 13
     protected string $baz;
14 14
 
15 15
     protected function setUp(): void
Please login to merge, or discard this patch.
src/Filters/tests/Model/Schema/InputMapperTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
 final class InputMapperTest extends BaseTestCase
18 18
 {
19
-    private m\LegacyMockInterface|m\MockInterface|FilterProviderInterface $provider;
19
+    private m\LegacyMockInterface | m\MockInterface | FilterProviderInterface $provider;
20 20
     private InputMapper $mapper;
21 21
 
22 22
     public function setUp(): void
Please login to merge, or discard this patch.
src/Router/src/Loader/Configurator/RouteConfigurator.php 2 patches
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,8 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function __destruct()
42 42
     {
43
-        if ($this->target === null) {
43
+        if ($this->target === null)
44
+        {
44 45
             throw new TargetException(
45 46
                 \sprintf('The [%s] route has no defined target. Call one of: `controller`, `action`,
46 47
                     `namespaced`, `groupControllers`, `callable`, `handler` methods.', $this->name)
@@ -142,7 +143,8 @@  discard block
 block discarded – undo
142 143
 
143 144
     public function middleware(MiddlewareInterface|string|array $middleware): self
144 145
     {
145
-        if (!\is_array($middleware)) {
146
+        if (!\is_array($middleware))
147
+        {
146 148
             $middleware = [$middleware];
147 149
         }
148 150
 
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     private ?string $group = null;
23 23
     private ?array $methods = null;
24 24
     private string $prefix = '';
25
-    private HandlerInterface|CoreInterface|null $core = null;
25
+    private HandlerInterface | CoreInterface | null $core = null;
26 26
     private ?array $middleware = null;
27 27
 
28 28
     /** @var null|string|callable|RequestHandlerInterface|TargetInterface */
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
         private readonly string $name,
37 37
         private readonly string $pattern,
38 38
         private readonly RouteCollection $collection
39
-    ) {
39
+    ){
40 40
     }
41 41
 
42 42
     public function __destruct()
43 43
     {
44
-        if ($this->target === null) {
44
+        if ($this->target === null){
45 45
             throw new TargetException(
46 46
                 \sprintf('The [%s] route has no defined target. Call one of: `controller`, `action`,
47 47
                     `namespaced`, `groupControllers`, `callable`, `handler` methods.', $this->name)
@@ -92,21 +92,21 @@  discard block
 block discarded – undo
92 92
         return $this;
93 93
     }
94 94
 
95
-    public function action(string $controller, string|array $action, int $options = 0): self
95
+    public function action(string $controller, string | array $action, int $options = 0): self
96 96
     {
97 97
         $this->target = new Action($controller, $action, $options);
98 98
 
99 99
         return $this;
100 100
     }
101 101
 
102
-    public function callable(array|\Closure $callable): self
102
+    public function callable(array | \Closure $callable): self
103 103
     {
104 104
         $this->target = $callable;
105 105
 
106 106
         return $this;
107 107
     }
108 108
 
109
-    public function handler(TargetInterface|string $target): self
109
+    public function handler(TargetInterface | string $target): self
110 110
     {
111 111
         $this->target = $target;
112 112
 
@@ -134,16 +134,16 @@  discard block
 block discarded – undo
134 134
         return $this;
135 135
     }
136 136
 
137
-    public function core(HandlerInterface|CoreInterface $core): self
137
+    public function core(HandlerInterface | CoreInterface $core): self
138 138
     {
139 139
         $this->core = $core;
140 140
 
141 141
         return $this;
142 142
     }
143 143
 
144
-    public function middleware(MiddlewareInterface|string|array $middleware): self
144
+    public function middleware(MiddlewareInterface | string | array $middleware): self
145 145
     {
146
-        if (!\is_array($middleware)) {
146
+        if (!\is_array($middleware)){
147 147
             $middleware = [$middleware];
148 148
         }
149 149
 
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
         return $this;
153 153
     }
154 154
 
155
-    public function methods(string|array $methods): self
155
+    public function methods(string | array $methods): self
156 156
     {
157
-        $this->methods = (array) $methods;
157
+        $this->methods = (array)$methods;
158 158
 
159 159
         return $this;
160 160
     }
Please login to merge, or discard this patch.
src/Router/src/AbstractRoute.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function __construct(
32 32
         protected string $pattern,
33 33
         array $defaults = []
34
-    ) {
34
+    ){
35 35
         $this->defaults = $defaults;
36 36
     }
37 37
 
@@ -56,12 +56,12 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function match(Request $request): ?static
58 58
     {
59
-        if (!\in_array(\strtoupper($request->getMethod()), $this->getVerbs(), true)) {
59
+        if (!\in_array(\strtoupper($request->getMethod()), $this->getVerbs(), true)){
60 60
             return null;
61 61
         }
62 62
 
63 63
         $matches = $this->uriHandler->match($request->getUri(), $this->defaults);
64
-        if ($matches === null) {
64
+        if ($matches === null){
65 65
             return null;
66 66
         }
67 67
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,12 +56,14 @@
 block discarded – undo
56 56
      */
57 57
     public function match(Request $request): ?static
58 58
     {
59
-        if (!\in_array(\strtoupper($request->getMethod()), $this->getVerbs(), true)) {
59
+        if (!\in_array(\strtoupper($request->getMethod()), $this->getVerbs(), true))
60
+        {
60 61
             return null;
61 62
         }
62 63
 
63 64
         $matches = $this->uriHandler->match($request->getUri(), $this->defaults);
64
-        if ($matches === null) {
65
+        if ($matches === null)
66
+        {
65 67
             return null;
66 68
         }
67 69
 
Please login to merge, or discard this patch.