Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 435-446 (lines=12) @@
432
	}
433
434
	protected function evalSelectorPart($piece) {
435
		foreach ($piece as &$p) {
436
			if (!is_array($p)) continue;
437
438
			switch ($p[0]) {
439
			case "interpolate":
440
				$p = $this->compileValue($p);
441
				break;
442
			case "string":
443
				$p = $this->compileValue($p);
444
				break;
445
			}
446
		}
447
448
		return $this->flattenSelectorSingle($piece);
449
	}
@@ 461-472 (lines=12) @@
458
	}
459
460
	protected function compileSelectorPart($piece) {
461
		foreach ($piece as &$p) {
462
			if (!is_array($p)) continue;
463
464
			switch ($p[0]) {
465
			case "self":
466
				$p = "&";
467
				break;
468
			default:
469
				$p = $this->compileValue($p);
470
				break;
471
			}
472
		}
473
474
		return implode($piece);
475
	}