From d6f2180fa0c27d30b66c14aed8564faa9307cb09 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Mon, 16 Nov 2020 18:14:38 +0100 Subject: [PATCH] Keep scrutinizer happy --- src/PhpSpreadsheet/Reader/Xlsx.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PhpSpreadsheet/Reader/Xlsx.php b/src/PhpSpreadsheet/Reader/Xlsx.php index 3a75edf6..3674667a 100644 --- a/src/PhpSpreadsheet/Reader/Xlsx.php +++ b/src/PhpSpreadsheet/Reader/Xlsx.php @@ -1138,12 +1138,12 @@ class Xlsx extends BaseReader $objDrawing->setWidth(Drawing::EMUToPixels(self::getArrayItem($oneCellAnchor->ext->attributes(), 'cx'))); $objDrawing->setHeight(Drawing::EMUToPixels(self::getArrayItem($oneCellAnchor->ext->attributes(), 'cy'))); if ($xfrm) { - $objDrawing->setRotation(Drawing::angleToDegrees(self::getArrayItem($xfrm->attributes(), 'rot'))); + $objDrawing->setRotation(Drawing::angleToDegrees((int) self::getArrayItem($xfrm->attributes(), 'rot'))); } if ($outerShdw) { $shadow = $objDrawing->getShadow(); $shadow->setVisible(true); - $shadow->setBlurRadius(Drawing::EMUToPixels(self::getArrayItem($outerShdw->attributes(), 'blurRad'))); + $shadow->setBlurRadius(Drawing::EMUToPixels((int) self::getArrayItem($outerShdw->attributes(), 'blurRad'))); $shadow->setDistance(Drawing::EMUToPixels(self::getArrayItem($outerShdw->attributes(), 'dist'))); $shadow->setDirection(Drawing::angleToDegrees(self::getArrayItem($outerShdw->attributes(), 'dir'))); $shadow->setAlignment((string) self::getArrayItem($outerShdw->attributes(), 'algn')); @@ -1563,7 +1563,7 @@ class Xlsx extends BaseReader // font if (isset($style->font)) { $docStyle->getFont()->setName((string) $style->font->name['val']); - $docStyle->getFont()->setSize((string) $style->font->sz['val']); + $docStyle->getFont()->setSize((float) $style->font->sz['val']); if (isset($style->font->b)) { $docStyle->getFont()->setBold(!isset($style->font->b['val']) || self::boolean((string) $style->font->b['val'])); } @@ -1676,7 +1676,7 @@ class Xlsx extends BaseReader // top-level style settings if (isset($style->quotePrefix)) { - $docStyle->setQuotePrefix($style->quotePrefix); + $docStyle->setQuotePrefix((bool) $style->quotePrefix); } }