Code Duplication    Length = 4-6 lines in 2 locations

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

@@ 2809-2814 (lines=6) @@
2806
		}
2807
2808
2809
		if (!empty($mediaType) && !$this->literal("and")) {
2810
			// ~
2811
		} else {
2812
			$this->genericList($expressions, "mediaExpression", "and", false);
2813
			if (is_array($expressions)) $parts = array_merge($parts, $expressions[2]);
2814
		}
2815
2816
		if (count($parts) == 0) {
2817
			$this->seek($s);

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

@@ 3060-3063 (lines=4) @@
3057
			$parts[] = $prop;
3058
		}
3059
3060
		if (empty($parts) || $this->literal("and")) {
3061
			$this->genericList($expressions, "mediaExpression", "and", false);
3062
			if (is_array($expressions)) $parts = array_merge($parts, $expressions[2]);
3063
		}
3064
3065
		$out = $parts;
3066
		return true;