src/PhpSpreadsheet/Calculation/DateTime.php 1 location
|
@@ 1251-1255 (lines=5) @@
|
1248 |
|
$dateValue = Functions::flattenSingleValue($dateValue); |
1249 |
|
$method = Functions::flattenSingleValue($method); |
1250 |
|
|
1251 |
|
if (!is_numeric($method)) { |
1252 |
|
return Functions::VALUE(); |
1253 |
|
} elseif (($method < 1) || ($method > 2)) { |
1254 |
|
return Functions::NAN(); |
1255 |
|
} |
1256 |
|
$method = floor($method); |
1257 |
|
|
1258 |
|
if ($dateValue === null) { |
src/PhpSpreadsheet/Calculation/MathTrig.php 1 location
|
@@ 929-931 (lines=3) @@
|
926 |
|
{ |
927 |
|
$aValue = Functions::flattenSingleValue($aValue); |
928 |
|
$style = (is_null($style)) ? 0 : (integer) Functions::flattenSingleValue($style); |
929 |
|
if ((!is_numeric($aValue)) || ($aValue < 0) || ($aValue >= 4000)) { |
930 |
|
return Functions::VALUE(); |
931 |
|
} |
932 |
|
$aValue = (integer) $aValue; |
933 |
|
if ($aValue == 0) { |
934 |
|
return ''; |