Code Duplication    Length = 8-10 lines in 2 locations

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

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

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

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