src/PhpSpreadsheet/Calculation/DateTime.php 1 location
|
@@ 1261-1265 (lines=5) @@
|
1258 |
|
$dateValue = Functions::flattenSingleValue($dateValue); |
1259 |
|
$method = Functions::flattenSingleValue($method); |
1260 |
|
|
1261 |
|
if (!is_numeric($method)) { |
1262 |
|
return Functions::VALUE(); |
1263 |
|
} elseif (($method < 1) || ($method > 2)) { |
1264 |
|
return Functions::NAN(); |
1265 |
|
} |
1266 |
|
$method = floor($method); |
1267 |
|
|
1268 |
|
if ($dateValue === null) { |
src/PhpSpreadsheet/Calculation/MathTrig.php 1 location
|
@@ 955-957 (lines=3) @@
|
952 |
|
{ |
953 |
|
$aValue = Functions::flattenSingleValue($aValue); |
954 |
|
$style = (is_null($style)) ? 0 : (int) Functions::flattenSingleValue($style); |
955 |
|
if ((!is_numeric($aValue)) || ($aValue < 0) || ($aValue >= 4000)) { |
956 |
|
return Functions::VALUE(); |
957 |
|
} |
958 |
|
$aValue = (int) $aValue; |
959 |
|
if ($aValue == 0) { |
960 |
|
return ''; |