Code Duplication    Length = 8-8 lines in 4 locations

src/PhpSpreadsheet/Chart/GridLines.php 2 locations

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

src/PhpSpreadsheet/Chart/Axis.php 2 locations

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