Passed
Pull Request — master (#50)
by Joao
01:55
created
src/OpenApi/OpenApiResponseBody.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             return true;
30 30
         }
31 31
         
32
-        if(!isset($this->structure['content']) && isset($this->structure['$ref'])){
32
+        if (!isset($this->structure['content']) && isset($this->structure['$ref'])) {
33 33
             $defintion = $this->schema->getDefinition($this->structure['$ref']);
34 34
             return $this->matchSchema($this->name, $defintion, $body);
35 35
         }
Please login to merge, or discard this patch.
src/AbstractRequester.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             ->withPort($uriSchema->getPort())
200 200
             ->withPath($uriSchema->getPath() . $this->psr7Request->getUri()->getPath());
201 201
 
202
-        if (!preg_match("~^{$this->schema->getBasePath()}~",  $this->psr7Request->getUri()->getPath())) {
202
+        if (!preg_match("~^{$this->schema->getBasePath()}~", $this->psr7Request->getUri()->getPath())) {
203 203
             $this->psr7Request->getUri()->withPath($this->schema->getBasePath() . $this->psr7Request->getUri()->getPath());
204 204
         }
205 205
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
         // Handle Request
224 224
         $response = $this->handleRequest($this->psr7Request);
225 225
         $responseHeader = $response->getHeaders();
226
-        $responseBodyStr = (string) $response->getBody();
226
+        $responseBodyStr = (string)$response->getBody();
227 227
         $responseBody = json_decode($responseBodyStr, true);
228 228
         $statusReturned = $response->getStatusCode();
229 229
 
Please login to merge, or discard this patch.