Minor scrutinizer fixes (#1226)
* Minor scrutinizer fixes * Remove spurious debug output
This commit is contained in:
parent
429a34cb14
commit
1b4098da8e
|
@ -3658,8 +3658,8 @@ class Calculation
|
|||
$rangeWS2 = $rangeWS1;
|
||||
}
|
||||
$refSheet = $pCellParent;
|
||||
if ($rangeSheetRef !== $pCellParent->getTitle()) {
|
||||
$refSheet = $pCell->getWorksheet()->getParent()->getSheetByName($rangeSheetRef);
|
||||
if ($pCellParent !== null && $rangeSheetRef !== $pCellParent->getTitle()) {
|
||||
$refSheet = $pCellParent->getParent()->getSheetByName($rangeSheetRef);
|
||||
}
|
||||
if ((is_int($startRowColRef)) && (ctype_digit($val)) &&
|
||||
($startRowColRef <= 1048576) && ($val <= 1048576)) {
|
||||
|
|
|
@ -266,7 +266,7 @@ class TextData
|
|||
if (!is_numeric($value) || !is_numeric($decimals)) {
|
||||
return Functions::NAN();
|
||||
}
|
||||
$decimals = floor($decimals);
|
||||
$decimals = (int) floor($decimals);
|
||||
|
||||
$valueResult = round($value, $decimals);
|
||||
if ($decimals < 0) {
|
||||
|
|
Loading…
Reference in New Issue