Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 863-865 (lines=3) @@
860
			$g = round($g);
861
			$b = round($b);
862
863
			if (count($value) == 5 && $value[4] != 1) { // rgba
864
				return 'rgba('.$r.','.$g.','.$b.','.$value[4].')';
865
			}
866
867
			$h = sprintf("#%02x%02x%02x", $r, $g, $b);
868

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

@@ 1178-1180 (lines=3) @@
1175
			$g = round($g);
1176
			$b = round($b);
1177
1178
			if (count($value) == 5 && $value[4] != 1) { // rgba
1179
				return 'rgba('.$r.', '.$g.', '.$b.', '.$value[4].')';
1180
			}
1181
1182
			$h = sprintf("#%02x%02x%02x", $r, $g, $b);
1183