Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

@@ 1451-1455 (lines=5) @@
1448
                                                Settings::getLibXmlLoaderOptions()
1449
                                            );
1450
                                            $drawings = [];
1451
                                            foreach ($relsVML->Relationship as $ele) {
1452
                                                if ($ele['Type'] == 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image') {
1453
                                                    $drawings[(string) $ele['Id']] = self::dirAdd($vmlRelationship, $ele['Target']);
1454
                                                }
1455
                                            }
1456
1457
                                            // Fetch VML document
1458
                                            $vmlDrawing = simplexml_load_string(
@@ 1514-1518 (lines=5) @@
1511
                                    Settings::getLibXmlLoaderOptions()
1512
                                );
1513
                                $drawings = [];
1514
                                foreach ($relsWorksheet->Relationship as $ele) {
1515
                                    if ($ele['Type'] == 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing') {
1516
                                        $drawings[(string) $ele['Id']] = self::dirAdd("$dir/$fileWorksheet", $ele['Target']);
1517
                                    }
1518
                                }
1519
                                if ($xmlSheet->drawing && !$this->readDataOnly) {
1520
                                    foreach ($xmlSheet->drawing as $drawing) {
1521
                                        $fileDrawing = $drawings[(string) self::getArrayItem($drawing->attributes('http://schemas.openxmlformats.org/officeDocument/2006/relationships'), 'id')];