Code Duplication    Length = 4-5 lines in 2 locations

src/SchemaReader.php 2 locations

@@ 80-84 (lines=5) @@
77
                        }
78
                        $attGroup->addAttribute($attribute);
79
                        break;
80
                    case 'attributeGroup':
81
82
                        $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute('ref'));
83
                        $attGroup->addAttribute($attribute);
84
                        break;
85
                }
86
            }
87
        };
@@ 381-384 (lines=4) @@
378
                        $group = $this->loadGroupRef($referencedGroup, $childNode);
379
                        $type->addElement($group);
380
                        break;
381
                    case 'attributeGroup':
382
                        $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute('ref'));
383
                        $type->addAttribute($attribute);
384
                        break;
385
                }
386
            }
387