Code Duplication    Length = 8-8 lines in 2 locations

src/Php/PhpConverter.php 2 locations

@@ 131-138 (lines=8) @@
128
129
    private function visitAttributeGroup(PHPClass $class, Schema $schema, AttributeGroup $att)
130
    {
131
        foreach ($att->getAttributes() as $childAttr) {
132
            if ($childAttr instanceof AttributeGroup) {
133
                $this->visitAttributeGroup($class, $schema, $childAttr);
134
            } else {
135
                $property = $this->visitAttribute($class, $schema, $childAttr);
136
                $class->addProperty($property);
137
            }
138
        }
139
    }
140
141
    private $skipByType = [];
@@ 353-360 (lines=8) @@
350
        }
351
        $schema = $type->getSchema();
352
353
        foreach ($type->getAttributes() as $attr) {
354
            if ($attr instanceof AttributeGroup) {
355
                $this->visitAttributeGroup($class, $schema, $attr);
356
            } else {
357
                $property = $this->visitAttribute($class, $schema, $attr);
358
                $class->addProperty($property);
359
            }
360
        }
361
    }
362
363
    private function visitAttribute(PHPClass $class, Schema $schema, AttributeItem $attribute, $arrayize = true)