Code Duplication    Length = 7-7 lines in 4 locations

projects/plugins/jetpack/modules/custom-css/custom-css/preprocessors/lessc.inc.php 4 locations

@@ 1106-1112 (lines=7) @@
1103
		return array($color, $delta);
1104
	}
1105
1106
	protected function lib_darken($args) {
1107
		list($color, $delta) = $this->colorArgs($args);
1108
1109
		$hsl = $this->toHSL($color);
1110
		$hsl[3] = $this->clamp($hsl[3] - $delta, 100);
1111
		return $this->toRGB($hsl);
1112
	}
1113
1114
	protected function lib_lighten($args) {
1115
		list($color, $delta) = $this->colorArgs($args);
@@ 1114-1120 (lines=7) @@
1111
		return $this->toRGB($hsl);
1112
	}
1113
1114
	protected function lib_lighten($args) {
1115
		list($color, $delta) = $this->colorArgs($args);
1116
1117
		$hsl = $this->toHSL($color);
1118
		$hsl[3] = $this->clamp($hsl[3] + $delta, 100);
1119
		return $this->toRGB($hsl);
1120
	}
1121
1122
	protected function lib_saturate($args) {
1123
		list($color, $delta) = $this->colorArgs($args);
@@ 1122-1128 (lines=7) @@
1119
		return $this->toRGB($hsl);
1120
	}
1121
1122
	protected function lib_saturate($args) {
1123
		list($color, $delta) = $this->colorArgs($args);
1124
1125
		$hsl = $this->toHSL($color);
1126
		$hsl[2] = $this->clamp($hsl[2] + $delta, 100);
1127
		return $this->toRGB($hsl);
1128
	}
1129
1130
	protected function lib_desaturate($args) {
1131
		list($color, $delta) = $this->colorArgs($args);
@@ 1130-1136 (lines=7) @@
1127
		return $this->toRGB($hsl);
1128
	}
1129
1130
	protected function lib_desaturate($args) {
1131
		list($color, $delta) = $this->colorArgs($args);
1132
1133
		$hsl = $this->toHSL($color);
1134
		$hsl[2] = $this->clamp($hsl[2] - $delta, 100);
1135
		return $this->toRGB($hsl);
1136
	}
1137
1138
	protected function lib_spin($args) {
1139
		list($color, $delta) = $this->colorArgs($args);