Completed
Pull Request — master (#32)
by Joao
10:20
created
src/SwaggerSchema.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
         $this->specificationVersion = isset($this->jsonFile['swagger']) ? '2' : '3';
29 29
     }
30 30
 
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     {
232 232
         $structure = $this->getPathDefinition($path, $method);
233 233
 
234
-        if($this->getSpecificationVersion() === '3') {
234
+        if ($this->getSpecificationVersion() === '3') {
235 235
             if (!isset($structure['requestBody'])) {
236 236
                 return new SwaggerRequestBody($this, "$method $path", []);
237 237
             }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      */
286 286
     public function setAllowNullValues($value)
287 287
     {
288
-        $this->allowNullValues = (bool) $value;
288
+        $this->allowNullValues = (bool)$value;
289 289
     }
290 290
 
291 291
     public function setServerVariable($var, $value)
Please login to merge, or discard this patch.