Code Duplication    Length = 3-5 lines in 3 locations

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

@@ 2087-2089 (lines=3) @@
2084
			//	Return strings wrapped in quotes
2085
			return '"'.$value.'"';
2086
		//	Convert numeric errors to NaN error
2087
		} else if((is_float($value)) && ((is_nan($value)) || (is_infinite($value)))) {
2088
			return PHPExcel_Calculation_Functions::NaN();
2089
		}
2090
2091
		return $value;
2092
	}	//	function _wrapResult()
@@ 2107-2109 (lines=3) @@
2104
				return substr($value,1,-1);
2105
			}
2106
		//	Convert numeric errors to NaN error
2107
		} else if((is_float($value)) && ((is_nan($value)) || (is_infinite($value)))) {
2108
			return PHPExcel_Calculation_Functions::NaN();
2109
		}
2110
		return $value;
2111
	}	//	function _unwrapResult()
2112
@@ 2191-2195 (lines=5) @@
2188
			$result = array_shift($testResult);
2189
		}
2190
2191
		if ($result === NULL) {
2192
			return 0;
2193
		} elseif((is_float($result)) && ((is_nan($result)) || (is_infinite($result)))) {
2194
			return PHPExcel_Calculation_Functions::NaN();
2195
		}
2196
		return $result;
2197
	}	//	function calculateCellValue(
2198