Completed
Pull Request — master (#75)
by
unknown
02:42
created
src/Middleware/Phroute.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,11 +39,9 @@
 block discarded – undo
39 39
         try {
40 40
             $response = $this->router->dispatch($request->getMethod(), $request->getUri()->getPath());
41 41
             $response = $response->withStatus(200);
42
-        }
43
-        catch (HttpRouteNotFoundException $e) {
42
+        } catch (HttpRouteNotFoundException $e) {
44 43
                 return $response->withStatus(404);
45
-        }
46
-        catch (BadRouteException $e) {
44
+        } catch (BadRouteException $e) {
47 45
                 return $response->withStatus(405);
48 46
         }
49 47
         return $next($request, $response);
Please login to merge, or discard this patch.