Code Duplication    Length = 4-5 lines in 2 locations

src/SchemaReader.php 2 locations

@@ 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
@@ 92-96 (lines=5) @@
89
                        }
90
                        $attGroup->addAttribute($attribute);
91
                        break;
92
                    case 'attributeGroup':
93
94
                        $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute('ref'));
95
                        $attGroup->addAttribute($attribute);
96
                        break;
97
                }
98
            }
99
        };