Code Duplication    Length = 8-8 lines in 4 locations

src/PhpSpreadsheet/Chart/Axis.php 2 locations

@@ 419-426 (lines=8) @@
416
     *
417
     * @return Axis
418
     */
419
    private function setShadowBlur($blur)
420
    {
421
        if ($blur !== null) {
422
            $this->shadowProperties['blur'] = (string) $this->getExcelPointsWidth($blur);
423
        }
424
425
        return $this;
426
    }
427
428
    /**
429
     * Set Shadow Angle
@@ 451-458 (lines=8) @@
448
     *
449
     * @return Axis
450
     */
451
    private function setShadowDistance($distance)
452
    {
453
        if ($distance !== null) {
454
            $this->shadowProperties['distance'] = (string) $this->getExcelPointsWidth($distance);
455
        }
456
457
        return $this;
458
    }
459
460
    /**
461
     * Get Shadow Property

src/PhpSpreadsheet/Chart/GridLines.php 2 locations

@@ 379-386 (lines=8) @@
376
     *
377
     * @return GridLines
378
     */
379
    private function setShadowBlur($blur)
380
    {
381
        if ($blur !== null) {
382
            $this->shadowProperties['blur'] = (string) $this->getExcelPointsWidth($blur);
383
        }
384
385
        return $this;
386
    }
387
388
    /**
389
     * Set Shadow Angle
@@ 409-416 (lines=8) @@
406
     * @param float $distance
407
     * @return GridLines
408
     */
409
    private function setShadowDistance($distance)
410
    {
411
        if ($distance !== null) {
412
            $this->shadowProperties['distance'] = (string) $this->getExcelPointsWidth($distance);
413
        }
414
415
        return $this;
416
    }
417
418
    /**
419
     * Get Shadow Property