Code Duplication    Length = 9-9 lines in 2 locations

modules/custom-css/custom-css/preprocessors/lessc.inc.php 1 location

@@ 1533-1541 (lines=9) @@
1530
			list(, $op, $exp) = $value;
1531
			$exp = $this->reduce($exp);
1532
1533
			if ($exp[0] == "number") {
1534
				switch ($op) {
1535
				case "+":
1536
					return $exp;
1537
				case "-":
1538
					$exp[1] *= -1;
1539
					return $exp;
1540
				}
1541
			}
1542
			return array("string", "", array($op, $exp));
1543
		}
1544

modules/custom-css/custom-css/preprocessors/scss.inc.php 1 location

@@ 887-895 (lines=9) @@
884
				$inExp = $inExp || $this->shouldEval($exp);
885
886
				$exp = $this->reduce($exp);
887
				if ($exp[0] == "number") {
888
					switch ($op) {
889
					case "+":
890
						return $exp;
891
					case "-":
892
						$exp[1] *= -1;
893
						return $exp;
894
					}
895
				}
896
897
				if ($op == "not") {
898
					if ($inExp || $inParens) {