Completed
Push — master ( 803805...3eeff4 )
by John
01:57
created
src/Server/GenericRouter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,13 +47,13 @@
 block discarded – undo
47 47
     {
48 48
         $method = $this->mapEndpointMethod($request);
49 49
         if (!method_exists($endpoint, $method)) {
50
-            throw new MethodNotFoundException("The endpoint method " . $method . " was not found");
50
+            throw new MethodNotFoundException("The endpoint method ".$method." was not found");
51 51
         }
52 52
         return call_user_func([$endpoint, $method], $request);
53 53
     }
54 54
 
55 55
     protected function mapEndpointMethod(APIRequest $request): string
56 56
     {
57
-        return strtolower($request->getMethod()) . (!$request->getElement() ? 'All': '');
57
+        return strtolower($request->getMethod()).(!$request->getElement() ? 'All' : '');
58 58
     }
59 59
 }
Please login to merge, or discard this patch.