Code Duplication    Length = 14-14 lines in 2 locations

src/PhpSpreadsheet/Chart/GridLines.php 2 locations

@@ 250-263 (lines=14) @@
247
     *
248
     * @return GridLines
249
     */
250
    private function setGlowColor($color, $alpha, $type)
251
    {
252
        if (!is_null($color)) {
253
            $this->glowProperties['color']['value'] = (string) $color;
254
        }
255
        if (!is_null($alpha)) {
256
            $this->glowProperties['color']['alpha'] = $this->getTrueAlpha((int) $alpha);
257
        }
258
        if (!is_null($type)) {
259
            $this->glowProperties['color']['type'] = (string) $type;
260
        }
261
262
        return $this;
263
    }
264
265
    /**
266
     * Get Line Style Arrow Parameters.
@@ 358-371 (lines=14) @@
355
     *
356
     * @return GridLines
357
     */
358
    private function setShadowColor($color, $alpha, $type)
359
    {
360
        if (!is_null($color)) {
361
            $this->shadowProperties['color']['value'] = (string) $color;
362
        }
363
        if (!is_null($alpha)) {
364
            $this->shadowProperties['color']['alpha'] = $this->getTrueAlpha((int) $alpha);
365
        }
366
        if (!is_null($type)) {
367
            $this->shadowProperties['color']['type'] = (string) $type;
368
        }
369
370
        return $this;
371
    }
372
373
    /**
374
     * Set Shadow Blur.