Code Duplication    Length = 8-10 lines in 2 locations

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

@@ 3506-3513 (lines=8) @@
3503
	protected function whitespace() {
3504
		if ($this->writeComments) {
3505
			$gotWhite = false;
3506
			while (preg_match(self::$whitePattern, $this->buffer, $m, null, $this->count)) {
3507
				if (isset($m[1]) && empty($this->seenComments[$this->count])) {
3508
					$this->append(array("comment", $m[1]));
3509
					$this->seenComments[$this->count] = true;
3510
				}
3511
				$this->count += strlen($m[0]);
3512
				$gotWhite = true;
3513
			}
3514
			return $gotWhite;
3515
		} else {
3516
			$this->match("", $m);

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

@@ 3977-3986 (lines=10) @@
3974
	// match some whitespace
3975
	protected function whitespace() {
3976
		$gotWhite = false;
3977
		while (preg_match(self::$whitePattern, $this->buffer, $m, null, $this->count)) {
3978
			if ($this->insertComments) {
3979
				if (isset($m[1]) && empty($this->commentsSeen[$this->count])) {
3980
					$this->append(array("comment", $m[1]));
3981
					$this->commentsSeen[$this->count] = true;
3982
				}
3983
			}
3984
			$this->count += strlen($m[0]);
3985
			$gotWhite = true;
3986
		}
3987
		return $gotWhite;
3988
	}
3989