Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 252-261 (lines=10) @@
249
		$this->popEnv();
250
	}
251
252
	protected function mediaParent($scope) {
253
		while (!empty($scope->parent)) {
254
			if (!empty($scope->type) && $scope->type != "media") {
255
				break;
256
			}
257
			$scope = $scope->parent;
258
		}
259
260
		return $scope;
261
	}
262
263
	protected function compileNestedBlock($block, $selectors) {
264
		$this->pushEnv($block);

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

@@ 353-362 (lines=10) @@
350
		$this->popEnv();
351
	}
352
353
	protected function mediaParent($scope) {
354
		while (!empty($scope->parent)) {
355
			if (!empty($scope->type) && $scope->type != "media") {
356
				break;
357
			}
358
			$scope = $scope->parent;
359
		}
360
361
		return $scope;
362
	}
363
364
	// TODO refactor compileNestedBlock and compileMedia into same thing
365
	protected function compileNestedBlock($block, $selectors) {