Code Duplication    Length = 5-5 lines in 2 locations

src/SchemaReader.php 2 locations

@@ 244-248 (lines=5) @@
241
            'simpleType' => 'loadSimpleType',
242
        ];
243
244
        if (isset($methods[$childNode->localName])) {
245
            $method = $methods[$childNode->localName];
246
247
            $functions[] = $this->$method($schema, $childNode);
248
        }
249
    }
250
251
    /**
@@ 806-810 (lines=5) @@
803
        ];
804
805
        foreach ($node->childNodes as $childNode) {
806
            if (isset($methods[$childNode->localName])) {
807
                $method = $methods[$childNode->localName];
808
809
                $this->$method($type, $childNode);
810
            }
811
        }
812
    }
813