Completed
Push — master ( 09627c...b27d19 )
by Joao
04:20 queued 02:07
created
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.
src/SwaggerSchema.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@  discard block
 block discarded – undo
18 18
     protected $jsonFile;
19 19
     protected $allowNullValues;
20 20
     
21
-    const SWAGGER_PATHS="paths";
22
-    const SWAGGER_PARAMETERS="parameters";
21
+    const SWAGGER_PATHS = "paths";
22
+    const SWAGGER_PARAMETERS = "parameters";
23 23
 
24 24
     public function __construct($jsonFile, $allowNullValues = false)
25 25
     {
26 26
         $this->jsonFile = json_decode($jsonFile, true);
27
-        $this->allowNullValues = (bool) $allowNullValues;
27
+        $this->allowNullValues = (bool)$allowNullValues;
28 28
     }
29 29
 
30 30
     public function getHttpSchema()
@@ -185,6 +185,6 @@  discard block
 block discarded – undo
185 185
      */
186 186
     public function setAllowNullValues($value)
187 187
     {
188
-        $this->allowNullValues = (bool) $value;
188
+        $this->allowNullValues = (bool)$value;
189 189
     }
190 190
 }
Please login to merge, or discard this patch.
src/SwaggerBody.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@  discard block
 block discarded – undo
8 8
 
9 9
 abstract class SwaggerBody
10 10
 {
11
-    const SWAGGER_PROPERTIES="properties";
12
-    const SWAGGER_REQUIRED="required";
11
+    const SWAGGER_PROPERTIES = "properties";
12
+    const SWAGGER_REQUIRED = "required";
13 13
     
14 14
     /**
15 15
      * @var \ByJG\Swagger\SwaggerSchema
@@ -146,27 +146,27 @@  discard block
 block discarded – undo
146 146
         $type = $schema['type'];
147 147
 
148 148
         $validators = [
149
-            function () use ($name, $body, $type)
149
+            function() use ($name, $body, $type)
150 150
             {
151 151
                 return $this->matchNull($name, $body, $type);
152 152
             },
153 153
 
154
-            function () use ($name, $schema, $body, $type)
154
+            function() use ($name, $schema, $body, $type)
155 155
             {
156 156
                 return $this->matchString($name, $schema, $body, $type);
157 157
             },
158 158
 
159
-            function () use ($name, $body, $type)
159
+            function() use ($name, $body, $type)
160 160
             {
161 161
                 return $this->matchNumber($name, $body, $type);
162 162
             },
163 163
 
164
-            function () use ($name, $body, $type)
164
+            function() use ($name, $body, $type)
165 165
             {
166 166
                 return $this->matchBool($name, $body, $type);
167 167
             },
168 168
 
169
-            function () use ($name, $schema, $body, $type)
169
+            function() use ($name, $schema, $body, $type)
170 170
             {
171 171
                 return $this->matchArray($name, $schema, $body, $type);
172 172
             }
Please login to merge, or discard this patch.