Test Failed
Pull Request — master (#1132)
by Aleksei
13:02
created
src/Router/src/Target/AbstractTarget.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     // Automatically prepend HTTP verb to all action names.
27 27
     public const RESTFUL = 1;
28 28
 
29
-    private HandlerInterface|CoreInterface|null $pipeline = null;
29
+    private HandlerInterface | CoreInterface | null $pipeline = null;
30 30
     private ?CoreHandler $handler = null;
31 31
     private bool $verbActions;
32 32
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         private array $constrains,
36 36
         int $options = 0,
37 37
         private string $defaultAction = 'index'
38
-    ) {
38
+    ){
39 39
         $this->verbActions = ($options & self::RESTFUL) === self::RESTFUL;
40 40
     }
41 41
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * @mutation-free
54 54
      * @deprecated Use {@see withHandler()} instead.
55 55
      */
56
-    public function withCore(HandlerInterface|CoreInterface $core): TargetInterface
56
+    public function withCore(HandlerInterface | CoreInterface $core): TargetInterface
57 57
     {
58 58
         $target = clone $this;
59 59
         $target->pipeline = $core;
@@ -85,11 +85,11 @@  discard block
 block discarded – undo
85 85
 
86 86
     protected function coreHandler(ContainerInterface $container): CoreHandler
87 87
     {
88
-        if ($this->handler !== null) {
88
+        if ($this->handler !== null){
89 89
             return $this->handler;
90 90
         }
91 91
 
92
-        try {
92
+        try{
93 93
             // construct on demand
94 94
             $this->handler = new CoreHandler(
95 95
                 $this->pipeline ?? new AutowireHandler($container),
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             );
100 100
 
101 101
             return $this->handler;
102
-        } catch (ContainerExceptionInterface $e) {
102
+        }catch (ContainerExceptionInterface $e){
103 103
             throw new TargetException($e->getMessage(), $e->getCode(), $e);
104 104
         }
105 105
     }
Please login to merge, or discard this patch.
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,11 +85,13 @@  discard block
 block discarded – undo
85 85
 
86 86
     protected function coreHandler(ContainerInterface $container): CoreHandler
87 87
     {
88
-        if ($this->handler !== null) {
88
+        if ($this->handler !== null)
89
+        {
89 90
             return $this->handler;
90 91
         }
91 92
 
92
-        try {
93
+        try
94
+        {
93 95
             // construct on demand
94 96
             $this->handler = new CoreHandler(
95 97
                 $this->pipeline ?? new AutowireHandler($container),
@@ -99,7 +101,9 @@  discard block
 block discarded – undo
99 101
             );
100 102
 
101 103
             return $this->handler;
102
-        } catch (ContainerExceptionInterface $e) {
104
+        }
105
+        catch (ContainerExceptionInterface $e)
106
+        {
103 107
             throw new TargetException($e->getMessage(), $e->getCode(), $e);
104 108
         }
105 109
     }
Please login to merge, or discard this patch.