Passed
Pull Request — master (#48)
by
unknown
06:36
created
src/OpenApi/OpenApiResponseBody.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 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
-        }
36
-        else {
35
+        } else {
37 36
             return $this->matchSchema($this->name, $this->structure['content'][key($this->structure['content'])]['schema'], $body);
38 37
         }
39 38
     }
Please login to merge, or discard this patch.