Code Duplication    Length = 7-7 lines in 2 locations

src/Object/Representation/ColorRepresentation.php 2 locations

@@ 376-382 (lines=7) @@
373
                    return;
374
                }
375
376
                if (count($value) === 4) {
377
                    if ($value[3] > 1) {
378
                        return;
379
                    }
380
381
                    $this->a = $value[3];
382
                }
383
384
                list($this->r, $this->g, $this->b) = $value;
385
                break;
@@ 392-398 (lines=7) @@
389
                    return;
390
                }
391
392
                if (count($value) === 4) {
393
                    if ($value[3] > 1) {
394
                        return;
395
                    }
396
397
                    $this->a = $value[3];
398
                }
399
400
                $value = self::hslToRgb($value[0], $value[1], $value[2]);
401
                list($this->r, $this->g, $this->b) = $value;