Passed
Push — main ( b92cd4...d72029 )
by Thomas
03:18
created
src/App.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Registry.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.