Code Duplication    Length = 10-10 lines in 2 locations

src/PhpSpreadsheet/Reader/Excel2007.php 2 locations

@@ 1609-1618 (lines=10) @@
1606
                                                    if ($xfrm) {
1607
                                                        $objDrawing->setRotation(\PhpSpreadsheet\Shared\Drawing::angleToDegrees(self::getArrayItem($xfrm->attributes(), "rot")));
1608
                                                    }
1609
                                                    if ($outerShdw) {
1610
                                                        $shadow = $objDrawing->getShadow();
1611
                                                        $shadow->setVisible(true);
1612
                                                        $shadow->setBlurRadius(\PhpSpreadsheet\Shared\Drawing::EMUTopixels(self::getArrayItem($outerShdw->attributes(), "blurRad")));
1613
                                                        $shadow->setDistance(\PhpSpreadsheet\Shared\Drawing::EMUTopixels(self::getArrayItem($outerShdw->attributes(), "dist")));
1614
                                                        $shadow->setDirection(\PhpSpreadsheet\Shared\Drawing::angleToDegrees(self::getArrayItem($outerShdw->attributes(), "dir")));
1615
                                                        $shadow->setAlignment((string) self::getArrayItem($outerShdw->attributes(), "algn"));
1616
                                                        $shadow->getColor()->setRGB(self::getArrayItem($outerShdw->srgbClr->attributes(), "val"));
1617
                                                        $shadow->setAlpha(self::getArrayItem($outerShdw->srgbClr->alpha->attributes(), "val") / 1000);
1618
                                                    }
1619
                                                    $objDrawing->setWorksheet($docSheet);
1620
                                                } else {
1621
                                                    //    ? Can charts be positioned with a oneCellAnchor ?
@@ 1657-1666 (lines=10) @@
1654
                                                        $objDrawing->setHeight(\PhpSpreadsheet\Shared\Drawing::EMUToPixels(self::getArrayItem($xfrm->ext->attributes(), "cy")));
1655
                                                        $objDrawing->setRotation(\PhpSpreadsheet\Shared\Drawing::angleToDegrees(self::getArrayItem($xfrm->attributes(), "rot")));
1656
                                                    }
1657
                                                    if ($outerShdw) {
1658
                                                        $shadow = $objDrawing->getShadow();
1659
                                                        $shadow->setVisible(true);
1660
                                                        $shadow->setBlurRadius(\PhpSpreadsheet\Shared\Drawing::EMUTopixels(self::getArrayItem($outerShdw->attributes(), "blurRad")));
1661
                                                        $shadow->setDistance(\PhpSpreadsheet\Shared\Drawing::EMUTopixels(self::getArrayItem($outerShdw->attributes(), "dist")));
1662
                                                        $shadow->setDirection(\PhpSpreadsheet\Shared\Drawing::angleToDegrees(self::getArrayItem($outerShdw->attributes(), "dir")));
1663
                                                        $shadow->setAlignment((string) self::getArrayItem($outerShdw->attributes(), "algn"));
1664
                                                        $shadow->getColor()->setRGB(self::getArrayItem($outerShdw->srgbClr->attributes(), "val"));
1665
                                                        $shadow->setAlpha(self::getArrayItem($outerShdw->srgbClr->alpha->attributes(), "val") / 1000);
1666
                                                    }
1667
                                                    $objDrawing->setWorksheet($docSheet);
1668
                                                } elseif (($this->includeCharts) && ($twoCellAnchor->graphicFrame)) {
1669
                                                    $fromCoordinate = \PhpSpreadsheet\Cell::stringFromColumnIndex((string) $twoCellAnchor->from->col) . ($twoCellAnchor->from->row + 1);