@@ -50,7 +50,7 @@ |
||
| 50 | 50 | */ |
| 51 | 51 | public function apply(callable $f) |
| 52 | 52 | { |
| 53 | - $recurse = function (&$item, $parent = null, $parentAttribute = null) use ($f, &$recurse) { |
|
| 53 | + $recurse = function(&$item, $parent = null, $parentAttribute = null) use ($f, &$recurse) { |
|
| 54 | 54 | |
| 55 | 55 | foreach ($item as $attribute => &$value) { |
| 56 | 56 | if (false === $f($value, $attribute, $parent, $parentAttribute)) { |
@@ -47,7 +47,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | })); |