Completed
Push — master ( c762b0...684d44 )
by John
02:56
created
src/Description/Builder/RamlBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         $schemes = array_map('strtolower', isset($this->document->protocols) ? $this->document->protocols : []);
29 29
         $paths   = [];
30 30
 
31
-        $this->document->apply(function ($definition, $attributeName, $parent, $parentAttributeName) use (&$paths) {
31
+        $this->document->apply(function($definition, $attributeName, $parent, $parentAttributeName) use (&$paths) {
32 32
             if (substr((string)$attributeName, 0, 1) === '/') {
33 33
                 $pathName         = "{$parentAttributeName}{$attributeName}";
34 34
                 $paths[$pathName] = $this->createPath($pathName, $definition);
Please login to merge, or discard this patch.
src/Description/Builder/OpenApiBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         /** @var ObjectSchema[] $typeDefinitions */
43 43
         $typeDefinitions = [];
44 44
 
45
-        $description->accept(new ClosureVisitor($this, function ($schema) use (&$typeDefinitions) {
45
+        $description->accept(new ClosureVisitor($this, function($schema) use (&$typeDefinitions) {
46 46
             if ($schema instanceof ObjectSchema) {
47 47
                 if ($schema->isType(Schema::TYPE_OBJECT) && isset($schema->getDefinition()->{'x-ref-id'})) {
48 48
                     $typeName = substr(
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             $complexTypes[] = $type;
62 62
         }
63 63
 
64
-        $description->accept(new ClosureVisitor($description, function () use (&$complexTypes) {
64
+        $description->accept(new ClosureVisitor($description, function() use (&$complexTypes) {
65 65
             $this->complexTypes = $complexTypes;
66 66
         }));
67 67
 
Please login to merge, or discard this patch.