Completed
Pull Request — master (#23)
by John
03:12
created
src/Description/Builder/OpenApiBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         /** @var ObjectSchema[] $typeDefinitions */
48 48
         $typeDefinitions = [];
49 49
 
50
-        $description->accept(new ClosureVisitor($this, function ($schema) use (&$typeDefinitions) {
50
+        $description->accept(new ClosureVisitor($this, function($schema) use (&$typeDefinitions) {
51 51
             if ($schema instanceof ObjectSchema) {
52 52
                 if (isset($schema->getDefinition()->{'x-ref-id'})) {
53 53
                     $typeName = substr(
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             }
61 61
         }));
62 62
 
63
-        $this->document->apply(function ($composite, $attribute, $parent, $parentAttribute) use (&$typeDefinitions) {
63
+        $this->document->apply(function($composite, $attribute, $parent, $parentAttribute) use (&$typeDefinitions) {
64 64
             if ($parentAttribute === 'definitions') {
65 65
                 $schema = $this->schemaFactory->create($composite);
66 66
                 if ($schema instanceof ObjectSchema) {
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                 $complexTypes[] = $type;
82 82
             }
83 83
 
84
-            $description->accept(new ClosureVisitor($description, function () use (&$complexTypes) {
84
+            $description->accept(new ClosureVisitor($description, function() use (&$complexTypes) {
85 85
                 /** @noinspection PhpUndefinedFieldInspection */
86 86
                 $this->complexTypes = $complexTypes;
87 87
             }));
Please login to merge, or discard this patch.