src/PhpSpreadsheet/Calculation/DateTime.php 1 location
|
@@ 1226-1230 (lines=5) @@
|
1223 |
|
$dateValue = Functions::flattenSingleValue($dateValue); |
1224 |
|
$method = Functions::flattenSingleValue($method); |
1225 |
|
|
1226 |
|
if (!is_numeric($method)) { |
1227 |
|
return Functions::VALUE(); |
1228 |
|
} elseif (($method < 1) || ($method > 2)) { |
1229 |
|
return Functions::NAN(); |
1230 |
|
} |
1231 |
|
$method = floor($method); |
1232 |
|
|
1233 |
|
if ($dateValue === null) { |
src/PhpSpreadsheet/Calculation/MathTrig.php 1 location
|
@@ 915-917 (lines=3) @@
|
912 |
|
{ |
913 |
|
$aValue = Functions::flattenSingleValue($aValue); |
914 |
|
$style = (is_null($style)) ? 0 : (integer) Functions::flattenSingleValue($style); |
915 |
|
if ((!is_numeric($aValue)) || ($aValue < 0) || ($aValue >= 4000)) { |
916 |
|
return Functions::VALUE(); |
917 |
|
} |
918 |
|
$aValue = (integer) $aValue; |
919 |
|
if ($aValue == 0) { |
920 |
|
return ''; |