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