Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

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