@@ -153,7 +153,7 @@ |
||
153 | 153 | $registry->add(ResponseFactoryInterface::class, \Nyholm\Psr7\Factory\Psr17Factory::class); |
154 | 154 | $registry->add(StreamFactoryInterface::class, \Nyholm\Psr7\Factory\Psr17Factory::class); |
155 | 155 | $registry->add(ResponseFactory::class, new ResponseFactory($this->registry)); |
156 | - $registry->add(ServerRequestInterface::class, function (): ServerRequestInterface { |
|
156 | + $registry->add(ServerRequestInterface::class, function(): ServerRequestInterface { |
|
157 | 157 | try { |
158 | 158 | $psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory(); |
159 | 159 | $creator = new \Nyholm\Psr7Server\ServerRequestCreator( |
@@ -72,8 +72,7 @@ discard block |
||
72 | 72 | } |
73 | 73 | |
74 | 74 | $message = empty($this->tag) ? |
75 | - 'Unresolvable id: ' . $id : |
|
76 | - 'Unresolvable tagged id: ' . $this->tag . '::' . $id; |
|
75 | + 'Unresolvable id: ' . $id : 'Unresolvable tagged id: ' . $this->tag . '::' . $id; |
|
77 | 76 | |
78 | 77 | throw new NotFoundException($message); |
79 | 78 | } |
@@ -140,8 +139,7 @@ discard block |
||
140 | 139 | // If $paramName is emtpy an existing unbound entry should |
141 | 140 | // be found on first try. |
142 | 141 | return isset($this->entries[$id . $paramName]) ? |
143 | - $this->resolveEntry($this->entries[$id . $paramName]) : |
|
144 | - $this->get($id); |
|
142 | + $this->resolveEntry($this->entries[$id . $paramName]) : $this->get($id); |
|
145 | 143 | } |
146 | 144 | |
147 | 145 | public function resolveParam(ReflectionParameter $param): mixed |