Completed
Push — master ( f21c98...d36dae )
by Joao
11s
created
src/SwaggerBody.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
 
133 133
                 if (!array_key_exists($prop, $body)) {
134 134
                     if ($required !== false) {
135
-                         throw new NotMatchedException("Required property '$prop' in '$name' not found in object");
135
+                            throw new NotMatchedException("Required property '$prop' in '$name' not found in object");
136 136
                     }
137 137
                     unset($body[$prop]);
138 138
                     continue;
Please login to merge, or discard this patch.
src/SwaggerSchema.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function __construct($jsonFile, $allowNullValues = false)
22 22
     {
23 23
         $this->jsonFile = json_decode($jsonFile, true);
24
-        $this->allowNullValues = (bool) $allowNullValues;
24
+        $this->allowNullValues = (bool)$allowNullValues;
25 25
     }
26 26
 
27 27
     public function getHttpSchema()
@@ -183,6 +183,6 @@  discard block
 block discarded – undo
183 183
      */
184 184
     public function setAllowNullValues($value)
185 185
     {
186
-        $this->allowNullValues = (bool) $value;
186
+        $this->allowNullValues = (bool)$value;
187 187
     }
188 188
 }
Please login to merge, or discard this patch.
src/SwaggerTestCase.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace ByJG\Swagger;
4 4
 
5
-use GuzzleHttp\Client;
6
-use GuzzleHttp\Exception\BadResponseException;
7 5
 use GuzzleHttp\Psr7\Request;
8 6
 use PHPUnit\Framework\TestCase;
9 7
 
Please login to merge, or discard this patch.
src/SwaggerRequester.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -170,11 +170,11 @@
 block discarded – undo
170 170
         try {
171 171
             $response = $this->guzzleHttpClient->send($request, ['allow_redirects' => false]);
172 172
             $responseHeader = $response->getHeaders();
173
-            $responseBody = json_decode((string) $response->getBody(), true);
173
+            $responseBody = json_decode((string)$response->getBody(), true);
174 174
             $statusReturned = $response->getStatusCode();
175 175
         } catch (BadResponseException $ex) {
176 176
             $responseHeader = $ex->getResponse()->getHeaders();
177
-            $responseBody = json_decode((string) $ex->getResponse()->getBody(), true);
177
+            $responseBody = json_decode((string)$ex->getResponse()->getBody(), true);
178 178
             $statusReturned = $ex->getResponse()->getStatusCode();
179 179
         }
180 180
 
Please login to merge, or discard this patch.