Completed
Branch version2 (a24b39)
by John
03:03
created
src/RequestFactory/GenericRequestFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,12 +48,12 @@
 block discarded – undo
48 48
         $parsedHeaders = $this->headerParser->parse($serverRequest->getHeaders());
49 49
 
50 50
         $urlQueryData = [];
51
-        if($urlQueryString = $parsedURL->getQueryString()) {
51
+        if ($urlQueryString = $parsedURL->getQueryString()) {
52 52
             parse_str($urlQueryString, $urlQueryData);
53 53
         }
54 54
 
55 55
         $apiKey = $parsedURL->getAPIKey();
56
-        if($apiKey === null) {
56
+        if ($apiKey === null) {
57 57
             $apiKey = $parsedHeaders->getAPIKey();
58 58
         }
59 59
 
Please login to merge, or discard this patch.
src/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.