Code Duplication    Length = 5-7 lines in 2 locations

lib/Ajde/Document/Processor/Css/lib/less/lessc.inc.php 2 locations

@@ 1353-1357 (lines=5) @@
1350
            foreach ($rawComponents as $c) {
1351
                $c = $this->reduce($c);
1352
                if ($i < 4) {
1353
                    if ($c[0] == 'number' && $c[2] == '%') {
1354
                        $components[] = 255 * ($c[1] / 100);
1355
                    } else {
1356
                        $components[] = floatval($c[1]);
1357
                    }
1358
                } elseif ($i == 4) {
1359
                    if ($c[0] == 'number' && $c[2] == '%') {
1360
                        $components[] = 1.0 * ($c[1] / 100);
@@ 1358-1364 (lines=7) @@
1355
                    } else {
1356
                        $components[] = floatval($c[1]);
1357
                    }
1358
                } elseif ($i == 4) {
1359
                    if ($c[0] == 'number' && $c[2] == '%') {
1360
                        $components[] = 1.0 * ($c[1] / 100);
1361
                    } else {
1362
                        $components[] = floatval($c[1]);
1363
                    }
1364
                } else {
1365
                    break;
1366
                }
1367