Code Duplication    Length = 4-4 lines in 2 locations

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

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

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

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