Code Duplication    Length = 7-9 lines in 3 locations

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

@@ 3348-3354 (lines=7) @@
3345
	}
3346
3347
	// consume a keyword
3348
	protected function keyword(&$word) {
3349
		if ($this->match('([\w_\-\*!"][\w\-_"]*)', $m)) {
3350
			$word = $m[1];
3351
			return true;
3352
		}
3353
		return false;
3354
	}
3355
3356
	// consume an end of statement delimiter
3357
	protected function end() {

modules/custom-css/custom-css/preprocessors/scss.inc.php 2 locations

@@ 3853-3861 (lines=9) @@
3850
		return false;
3851
	}
3852
3853
	protected function keyword(&$word, $eatWhitespace = null) {
3854
		if ($this->match('([\w_\-\*!"\'\\\\][\w\-_"\'\\\\]*)',
3855
			$m, $eatWhitespace))
3856
		{
3857
			$word = $m[1];
3858
			return true;
3859
		}
3860
		return false;
3861
	}
3862
3863
	protected function placeholder(&$placeholder) {
3864
		if ($this->match('([\w\-_]+)', $m)) {
@@ 3863-3869 (lines=7) @@
3860
		return false;
3861
	}
3862
3863
	protected function placeholder(&$placeholder) {
3864
		if ($this->match('([\w\-_]+)', $m)) {
3865
			$placeholder = $m[1];
3866
			return true;
3867
		}
3868
		return false;
3869
	}
3870
3871
	// consume an end of statement delimiter
3872
	protected function end() {