Code Duplication    Length = 7-7 lines in 3 locations

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

@@ 1664-1670 (lines=7) @@
1661
	}
1662
1663
	protected function stringConcatenate($left, $right) {
1664
		if ($strLeft = $this->coerceString($left)) {
1665
			if ($right[0] == "string") {
1666
				$right[1] = "";
1667
			}
1668
			$strLeft[2][] = $right;
1669
			return $strLeft;
1670
		}
1671
1672
		if ($strRight = $this->coerceString($right)) {
1673
			array_unshift($strRight[2], $left);

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

@@ 1033-1039 (lines=7) @@
1030
1031
	// adding strings
1032
	protected function op_add($left, $right) {
1033
		if ($strLeft = $this->coerceString($left)) {
1034
			if ($right[0] == "string") {
1035
				$right[1] = "";
1036
			}
1037
			$strLeft[2][] = $right;
1038
			return $strLeft;
1039
		}
1040
1041
		if ($strRight = $this->coerceString($right)) {
1042
			if ($left[0] == "string") {
@@ 1041-1047 (lines=7) @@
1038
			return $strLeft;
1039
		}
1040
1041
		if ($strRight = $this->coerceString($right)) {
1042
			if ($left[0] == "string") {
1043
				$left[1] = "";
1044
			}
1045
			array_unshift($strRight[2], $left);
1046
			return $strRight;
1047
		}
1048
	}
1049
1050
	protected function op_and($left, $right, $shouldEval) {