Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 3517-3523 (lines=7) @@
3514
	}
3515
3516
	// match something without consuming it
3517
	protected function peek($regex, &$out = null, $from=null) {
3518
		if (is_null($from)) $from = $this->count;
3519
		$r = '/'.$regex.'/Ais';
3520
		$result = preg_match($r, $this->buffer, $out, null, $from);
3521
3522
		return $result;
3523
	}
3524
3525
	// seek to a spot in the buffer or return where we are on no argument
3526
	protected function seek($where = null) {

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

@@ 3991-3998 (lines=8) @@
3988
		return $gotWhite;
3989
	}
3990
3991
	protected function peek($regex, &$out, $from=null) {
3992
		if (is_null($from)) $from = $this->count;
3993
3994
		$r = '/'.$regex.'/Ais';
3995
		$result = preg_match($r, $this->buffer, $out, null, $from);
3996
3997
		return $result;
3998
	}
3999
4000
	protected function seek($where = null) {
4001
		if ($where === null) return $this->count;