Passed
Pull Request — master (#48)
by
unknown
06:36
created
src/ApiTestCase.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace ByJG\ApiTools;
4 4
 
5
-use ByJG\ApiTools\Base\BaseTestCase;
6 5
 use ByJG\ApiTools\Base\Schema;
7 6
 use ByJG\ApiTools\Exception\DefinitionNotFoundException;
8 7
 use ByJG\ApiTools\Exception\GenericSwaggerException;
Please login to merge, or discard this patch.
src/OpenApi/OpenApiResponseBody.php 1 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.