|
@@ -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) { |
|
@@ -75,7 +75,7 @@ discard block |
|
|
block discarded – undo |
|
75
|
75
|
$complexTypes[] = $type; |
|
76
|
76
|
} |
|
77
|
77
|
|
|
78
|
|
- $description->accept(new ClosureVisitor($description, function () use (&$complexTypes) { |
|
|
78
|
+ $description->accept(new ClosureVisitor($description, function() use (&$complexTypes) { |
|
79
|
79
|
/** @noinspection PhpUndefinedFieldInspection */ |
|
80
|
80
|
$this->complexTypes = $complexTypes; |
|
81
|
81
|
})); |
Please login to merge, or discard this patch.