Code Duplication    Length = 10-10 lines in 2 locations

Contrib/less.php/Less.php 2 locations

@@ 5436-5445 (lines=10) @@
5433
			$group = Less_Tree_UnitConversions::${$groupName};
5434
5435
			//numerator
5436
			foreach($unit->numerator as $i => $atomicUnit){
5437
				$atomicUnit = $unit->numerator[$i];
5438
				if( !isset($group[$atomicUnit]) ){
5439
					continue;
5440
				}
5441
5442
				$value = $value * ($group[$atomicUnit] / $group[$targetUnit]);
5443
5444
				$unit->numerator[$i] = $targetUnit;
5445
			}
5446
5447
			//denominator
5448
			foreach($unit->denominator as $i => $atomicUnit){
@@ 5448-5457 (lines=10) @@
5445
			}
5446
5447
			//denominator
5448
			foreach($unit->denominator as $i => $atomicUnit){
5449
				$atomicUnit = $unit->denominator[$i];
5450
				if( !isset($group[$atomicUnit]) ){
5451
					continue;
5452
				}
5453
5454
				$value = $value / ($group[$atomicUnit] / $group[$targetUnit]);
5455
5456
				$unit->denominator[$i] = $targetUnit;
5457
			}
5458
		}
5459
5460
		$unit->cancel();