Completed
Push — master ( 1215d5...3d05f5 )
by John
09:33
created
src/Server/HTTPServer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         } catch (InvalidAPIKeyException | AccessDeniedException $e) {
103 103
             $this->logCaughtThrowableResultingInHTTPCode(403, $e, LogLevel::NOTICE);
104 104
             return $response->withStatus(403, "Access Denied");
105
-        }  catch (ElementConflictException $e) {
105
+        } catch (ElementConflictException $e) {
106 106
             $this->logCaughtThrowableResultingInHTTPCode(409, $e, LogLevel::NOTICE);
107 107
             return $response->withStatus(409, "Conflict");
108 108
         } catch (ThrottleLimitExceededException $e) {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         }
136 136
 
137 137
         $body = $response->getBody();
138
-        while(!$body->eof()) {
138
+        while (!$body->eof()) {
139 139
             echo $body->read(1024);
140 140
         }
141 141
     }
Please login to merge, or discard this patch.
src/Server/GenericRouter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         $method = $this->mapEndpointMethod($request);
60 60
         if (!method_exists($endpoint, $method)) {
61
-            throw new MethodNotFoundException("The endpoint method " . $method . " was not found");
61
+            throw new MethodNotFoundException("The endpoint method ".$method." was not found");
62 62
         }
63 63
         return call_user_func([$endpoint, $method], $request);
64 64
     }
@@ -69,6 +69,6 @@  discard block
 block discarded – undo
69 69
      */
70 70
     protected function mapEndpointMethod(APIRequest $request): string
71 71
     {
72
-        return strtolower($request->getMethod()) . (!$request->getElement() ? 'All': '');
72
+        return strtolower($request->getMethod()).(!$request->getElement() ? 'All' : '');
73 73
     }
74 74
 }
Please login to merge, or discard this patch.