Code Duplication    Length = 4-5 lines in 2 locations

src/SchemaReader.php 2 locations

@@ 75-79 (lines=5) @@
72
                        }
73
                        $attGroup->addAttribute($attribute);
74
                        break;
75
                    case 'attributeGroup':
76
77
                        $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute("ref"));
78
                        $attGroup->addAttribute($attribute);
79
                        break;
80
                }
81
            }
82
        };
@@ 370-373 (lines=4) @@
367
368
                        $type->addAttribute($attribute);
369
                        break;
370
                    case 'attributeGroup':
371
                        $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute("ref"));
372
                        $type->addAttribute($attribute);
373
                        break;
374
                }
375
            }
376