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
        };
@@ 362-365 (lines=4) @@
359
360
                        $type->addAttribute($attribute);
361
                        break;
362
                    case 'attributeGroup':
363
                        $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute("ref"));
364
                        $type->addAttribute($attribute);
365
                        break;
366
                }
367
            }
368