Code Duplication    Length = 16-16 lines in 2 locations

app/Vendor/PHPExcel/PHPExcel/Calculation/Engineering.php 2 locations

@@ 2434-2449 (lines=16) @@
2431
			return PHPExcel_Calculation_Functions::VALUE();
2432
		}
2433
		$fromMultiplier = 1.0;
2434
		if (isset(self::$_conversionUnits[$fromUOM])) {
2435
			$unitGroup1 = self::$_conversionUnits[$fromUOM]['Group'];
2436
		} else {
2437
			$fromMultiplier = substr($fromUOM,0,1);
2438
			$fromUOM = substr($fromUOM,1);
2439
			if (isset(self::$_conversionMultipliers[$fromMultiplier])) {
2440
				$fromMultiplier = self::$_conversionMultipliers[$fromMultiplier]['multiplier'];
2441
			} else {
2442
				return PHPExcel_Calculation_Functions::NA();
2443
			}
2444
			if ((isset(self::$_conversionUnits[$fromUOM])) && (self::$_conversionUnits[$fromUOM]['AllowPrefix'])) {
2445
				$unitGroup1 = self::$_conversionUnits[$fromUOM]['Group'];
2446
			} else {
2447
				return PHPExcel_Calculation_Functions::NA();
2448
			}
2449
		}
2450
		$value *= $fromMultiplier;
2451
2452
		$toMultiplier = 1.0;
@@ 2453-2468 (lines=16) @@
2450
		$value *= $fromMultiplier;
2451
2452
		$toMultiplier = 1.0;
2453
		if (isset(self::$_conversionUnits[$toUOM])) {
2454
			$unitGroup2 = self::$_conversionUnits[$toUOM]['Group'];
2455
		} else {
2456
			$toMultiplier = substr($toUOM,0,1);
2457
			$toUOM = substr($toUOM,1);
2458
			if (isset(self::$_conversionMultipliers[$toMultiplier])) {
2459
				$toMultiplier = self::$_conversionMultipliers[$toMultiplier]['multiplier'];
2460
			} else {
2461
				return PHPExcel_Calculation_Functions::NA();
2462
			}
2463
			if ((isset(self::$_conversionUnits[$toUOM])) && (self::$_conversionUnits[$toUOM]['AllowPrefix'])) {
2464
				$unitGroup2 = self::$_conversionUnits[$toUOM]['Group'];
2465
			} else {
2466
				return PHPExcel_Calculation_Functions::NA();
2467
			}
2468
		}
2469
		if ($unitGroup1 != $unitGroup2) {
2470
			return PHPExcel_Calculation_Functions::NA();
2471
		}