Code Duplication    Length = 4-5 lines in 2 locations

src/SchemaReader.php 2 locations

@@ 79-83 (lines=5) @@
76
                        }
77
                        $attGroup->addAttribute($attribute);
78
                        break;
79
                    case 'attributeGroup':
80
81
                        $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute("ref"));
82
                        $attGroup->addAttribute($attribute);
83
                        break;
84
                }
85
            }
86
        };
@@ 374-377 (lines=4) @@
371
372
                        $type->addAttribute($attribute);
373
                        break;
374
                    case 'attributeGroup':
375
                        $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute("ref"));
376
                        $type->addAttribute($attribute);
377
                        break;
378
                }
379
            }
380