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
        };
@@ 380-383 (lines=4) @@
377
                        $group = $this->loadGroupRef($referencedGroup, $childNode);
378
                        $type->addElement($group);
379
                        break;
380
                    case 'attributeGroup':
381
                        $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute("ref"));
382
                        $type->addAttribute($attribute);
383
                        break;
384
                }
385
            }
386