Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 2991-2994 (lines=4) @@
2988
			if (!ctype_digit($char) && $char != ".") return false;
2989
		}
2990
2991
		if ($this->match('([0-9]+(?:\.[0-9]*)?|\.[0-9]+)([%a-zA-Z]+)?', $m)) {
2992
			$unit = array("number", $m[1], empty($m[2]) ? "" : $m[2]);
2993
			return true;
2994
		}
2995
		return false;
2996
	}
2997

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

@@ 3433-3436 (lines=4) @@
3430
	}
3431
3432
	protected function unit(&$unit) {
3433
		if ($this->match('([0-9]*(\.)?[0-9]+)([%a-zA-Z]+)?', $m)) {
3434
			$unit = array("number", $m[1], empty($m[3]) ? "" : $m[3]);
3435
			return true;
3436
		}
3437
		return false;
3438
	}
3439