Code Duplication    Length = 5-7 lines in 2 locations

src/LesserPhp/Compiler.php 2 locations

@@ 1290-1294 (lines=5) @@
1287
            foreach ($rawComponents as $c) {
1288
                $c = $this->reduce($c);
1289
                if ($i < 4) {
1290
                    if ($c[0] === "number" && $c[2] === "%") {
1291
                        $components[] = 255 * ($c[1] / 100);
1292
                    } else {
1293
                        $components[] = (float)$c[1];
1294
                    }
1295
                } elseif ($i === 4) {
1296
                    if ($c[0] === "number" && $c[2] === "%") {
1297
                        $components[] = 1.0 * ($c[1] / 100);
@@ 1295-1301 (lines=7) @@
1292
                    } else {
1293
                        $components[] = (float)$c[1];
1294
                    }
1295
                } elseif ($i === 4) {
1296
                    if ($c[0] === "number" && $c[2] === "%") {
1297
                        $components[] = 1.0 * ($c[1] / 100);
1298
                    } else {
1299
                        $components[] = (float)$c[1];
1300
                    }
1301
                } else {
1302
                    break;
1303
                }
1304