Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 2414-2427 (lines=14) @@
2411
	 * @param	mixed		&$matrix2	Second matrix operand
2412
	 */
2413
	private static function _resizeMatricesShrink(&$matrix1,&$matrix2,$matrix1Rows,$matrix1Columns,$matrix2Rows,$matrix2Columns) {
2414
		if (($matrix2Columns < $matrix1Columns) || ($matrix2Rows < $matrix1Rows)) {
2415
			if ($matrix2Columns < $matrix1Columns) {
2416
				for ($i = 0; $i < $matrix1Rows; ++$i) {
2417
					for ($j = $matrix2Columns; $j < $matrix1Columns; ++$j) {
2418
						unset($matrix1[$i][$j]);
2419
					}
2420
				}
2421
			}
2422
			if ($matrix2Rows < $matrix1Rows) {
2423
				for ($i = $matrix2Rows; $i < $matrix1Rows; ++$i) {
2424
					unset($matrix1[$i]);
2425
				}
2426
			}
2427
		}
2428
2429
		if (($matrix1Columns < $matrix2Columns) || ($matrix1Rows < $matrix2Rows)) {
2430
			if ($matrix1Columns < $matrix2Columns) {
@@ 2429-2442 (lines=14) @@
2426
			}
2427
		}
2428
2429
		if (($matrix1Columns < $matrix2Columns) || ($matrix1Rows < $matrix2Rows)) {
2430
			if ($matrix1Columns < $matrix2Columns) {
2431
				for ($i = 0; $i < $matrix2Rows; ++$i) {
2432
					for ($j = $matrix1Columns; $j < $matrix2Columns; ++$j) {
2433
						unset($matrix2[$i][$j]);
2434
					}
2435
				}
2436
			}
2437
			if ($matrix1Rows < $matrix2Rows) {
2438
				for ($i = $matrix1Rows; $i < $matrix2Rows; ++$i) {
2439
					unset($matrix2[$i]);
2440
				}
2441
			}
2442
		}
2443
	}	//	function _resizeMatricesShrink()
2444
2445