Code Duplication    Length = 11-11 lines in 3 locations

app/Vendor/PHPExcel/PHPExcel/Calculation/Engineering.php 1 location

@@ 2339-2349 (lines=11) @@
2336
	 * @param	float		$x		The lower bound for integrating ERF
2337
	 * @return	int
2338
	 */
2339
	public static function ERFC($x) {
2340
		$x	= PHPExcel_Calculation_Functions::flattenSingleValue($x);
2341
2342
		if (is_numeric($x)) {
2343
			if ($x < 0) {
2344
				return PHPExcel_Calculation_Functions::NaN();
2345
			}
2346
			return self::_erfcVal($x);
2347
		}
2348
		return PHPExcel_Calculation_Functions::VALUE();
2349
	}	//	function ERFC()
2350
2351
2352
	/**

app/Vendor/PHPExcel/PHPExcel/Calculation/MathTrig.php 1 location

@@ 951-961 (lines=11) @@
948
	 * @param	float	$number		Number
949
	 * @return	float	Square Root of Number * Pi
950
	 */
951
	public static function SQRTPI($number) {
952
		$number	= PHPExcel_Calculation_Functions::flattenSingleValue($number);
953
954
		if (is_numeric($number)) {
955
			if ($number < 0) {
956
				return PHPExcel_Calculation_Functions::NaN();
957
			}
958
			return sqrt($number * M_PI) ;
959
		}
960
		return PHPExcel_Calculation_Functions::VALUE();
961
	}	//	function SQRTPI()
962
963
964
	/**

app/Vendor/PHPExcel/PHPExcel/Calculation/Statistical.php 1 location

@@ 1678-1688 (lines=11) @@
1675
	 * @param	float		$value
1676
	 * @return	float
1677
	 */
1678
	public static function GAMMALN($value) {
1679
		$value	= PHPExcel_Calculation_Functions::flattenSingleValue($value);
1680
1681
		if (is_numeric($value)) {
1682
			if ($value <= 0) {
1683
				return PHPExcel_Calculation_Functions::NaN();
1684
			}
1685
			return log(self::_gamma($value));
1686
		}
1687
		return PHPExcel_Calculation_Functions::VALUE();
1688
	}	//	function GAMMALN()
1689
1690
1691
	/**