@@ -120,7 +120,7 @@ |
||
| 120 | 120 | $registry->addAnyway(ResponseFactoryInterface::class, \Nyholm\Psr7\Factory\Psr17Factory::class); |
| 121 | 121 | $registry->addAnyway(StreamFactoryInterface::class, \Nyholm\Psr7\Factory\Psr17Factory::class); |
| 122 | 122 | $registry->addAnyway(ResponseFactory::class, new ResponseFactory($this->registry)); |
| 123 | - $registry->addAnyway(ServerRequestInterface::class, function (): ServerRequestInterface { |
|
| 123 | + $registry->addAnyway(ServerRequestInterface::class, function(): ServerRequestInterface { |
|
| 124 | 124 | try { |
| 125 | 125 | $psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory(); |
| 126 | 126 | $creator = new \Nyholm\Psr7Server\ServerRequestCreator( |
@@ -142,8 +142,7 @@ |
||
| 142 | 142 | // If $paramName is emtpy an existing unbound entry should |
| 143 | 143 | // be found on first try. |
| 144 | 144 | return isset($this->entries[$id . $paramName]) ? |
| 145 | - $this->resolveEntry($this->entries[$id . $paramName]) : |
|
| 146 | - $this->get($id); |
|
| 145 | + $this->resolveEntry($this->entries[$id . $paramName]) : $this->get($id); |
|
| 147 | 146 | } |
| 148 | 147 | |
| 149 | 148 | protected function resolveEntry(Entry $entry): mixed |