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
        };
@@ 375-378 (lines=4) @@
372
373
                        $type->addAttribute($attribute);
374
                        break;
375
                    case 'attributeGroup':
376
                        $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute("ref"));
377
                        $type->addAttribute($attribute);
378
                        break;
379
                }
380
            }
381