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
        };
@@ 400-403 (lines=4) @@
397
                        $group = $this->loadGroupRef($referencedGroup, $childNode);
398
                        $type->addElement($group);
399
                        break;
400
                    case 'attributeGroup':
401
                        $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute("ref"));
402
                        $type->addAttribute($attribute);
403
                        break;
404
                }
405
            }
406