Code Duplication    Length = 10-10 lines in 2 locations

src/PhpSpreadsheet/Reader/Xlsx.php 2 locations

@@ 1581-1590 (lines=10) @@
1578
                                                    if ($xfrm) {
1579
                                                        $objDrawing->setRotation(Drawing::angleToDegrees(self::getArrayItem($xfrm->attributes(), 'rot')));
1580
                                                    }
1581
                                                    if ($outerShdw) {
1582
                                                        $shadow = $objDrawing->getShadow();
1583
                                                        $shadow->setVisible(true);
1584
                                                        $shadow->setBlurRadius(Drawing::EMUTopixels(self::getArrayItem($outerShdw->attributes(), 'blurRad')));
1585
                                                        $shadow->setDistance(Drawing::EMUTopixels(self::getArrayItem($outerShdw->attributes(), 'dist')));
1586
                                                        $shadow->setDirection(Drawing::angleToDegrees(self::getArrayItem($outerShdw->attributes(), 'dir')));
1587
                                                        $shadow->setAlignment((string) self::getArrayItem($outerShdw->attributes(), 'algn'));
1588
                                                        $shadow->getColor()->setRGB(self::getArrayItem($outerShdw->srgbClr->attributes(), 'val'));
1589
                                                        $shadow->setAlpha(self::getArrayItem($outerShdw->srgbClr->alpha->attributes(), 'val') / 1000);
1590
                                                    }
1591
                                                    $objDrawing->setWorksheet($docSheet);
1592
                                                } else {
1593
                                                    //    ? Can charts be positioned with a oneCellAnchor ?
@@ 1629-1638 (lines=10) @@
1626
                                                        $objDrawing->setHeight(Drawing::EMUToPixels(self::getArrayItem($xfrm->ext->attributes(), 'cy')));
1627
                                                        $objDrawing->setRotation(Drawing::angleToDegrees(self::getArrayItem($xfrm->attributes(), 'rot')));
1628
                                                    }
1629
                                                    if ($outerShdw) {
1630
                                                        $shadow = $objDrawing->getShadow();
1631
                                                        $shadow->setVisible(true);
1632
                                                        $shadow->setBlurRadius(Drawing::EMUTopixels(self::getArrayItem($outerShdw->attributes(), 'blurRad')));
1633
                                                        $shadow->setDistance(Drawing::EMUTopixels(self::getArrayItem($outerShdw->attributes(), 'dist')));
1634
                                                        $shadow->setDirection(Drawing::angleToDegrees(self::getArrayItem($outerShdw->attributes(), 'dir')));
1635
                                                        $shadow->setAlignment((string) self::getArrayItem($outerShdw->attributes(), 'algn'));
1636
                                                        $shadow->getColor()->setRGB(self::getArrayItem($outerShdw->srgbClr->attributes(), 'val'));
1637
                                                        $shadow->setAlpha(self::getArrayItem($outerShdw->srgbClr->alpha->attributes(), 'val') / 1000);
1638
                                                    }
1639
                                                    $objDrawing->setWorksheet($docSheet);
1640
                                                } elseif (($this->includeCharts) && ($twoCellAnchor->graphicFrame)) {
1641
                                                    $fromCoordinate = Coordinate::stringFromColumnIndex(((string) $twoCellAnchor->from->col) + 1) . ($twoCellAnchor->from->row + 1);