Code Duplication    Length = 4-5 lines in 2 locations

src/SchemaReader.php 2 locations

@@ 100-104 (lines=5) @@
97
                        }
98
                        $attGroup->addAttribute($attribute);
99
                        break;
100
                    case 'attributeGroup':
101
102
                        $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute("ref"));
103
                        $attGroup->addAttribute($attribute);
104
                        break;
105
                }
106
            }
107
        };
@@ 408-411 (lines=4) @@
405
                        $group = $this->loadGroupRef($referencedGroup, $childNode);
406
                        $type->addElement($group);
407
                        break;
408
                    case 'attributeGroup':
409
                        $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute("ref"));
410
                        $type->addAttribute($attribute);
411
                        break;
412
                }
413
            }
414