Code Duplication    Length = 8-8 lines in 2 locations

src/PhpSpreadsheet/Chart/GridLines.php 1 location

@@ 396-403 (lines=8) @@
393
     *
394
     * @return GridLines
395
     */
396
    private function setShadowAngle($angle)
397
    {
398
        if ($angle !== null) {
399
            $this->shadowProperties['direction'] = (string) $this->getExcelPointsAngle($angle);
400
        }
401
402
        return $this;
403
    }
404
405
    /**
406
     * Set Shadow Distance.

src/PhpSpreadsheet/Chart/Axis.php 1 location

@@ 437-444 (lines=8) @@
434
     *
435
     * @return Axis
436
     */
437
    private function setShadowAngle($angle)
438
    {
439
        if ($angle !== null) {
440
            $this->shadowProperties['direction'] = (string) $this->getExcelPointsAngle($angle);
441
        }
442
443
        return $this;
444
    }
445
446
    /**
447
     * Set Shadow Distance.