Skip to content

Commit d6f2180

Browse files
author
MarkBaker
committed
Keep scrutinizer happy
1 parent 6bf24d8 commit d6f2180

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PhpSpreadsheet/Reader/Xlsx.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,12 +1138,12 @@ public function load($pFilename)
11381138
$objDrawing->setWidth(Drawing::EMUToPixels(self::getArrayItem($oneCellAnchor->ext->attributes(), 'cx')));
11391139
$objDrawing->setHeight(Drawing::EMUToPixels(self::getArrayItem($oneCellAnchor->ext->attributes(), 'cy')));
11401140
if ($xfrm) {
1141-
$objDrawing->setRotation(Drawing::angleToDegrees(self::getArrayItem($xfrm->attributes(), 'rot')));
1141+
$objDrawing->setRotation(Drawing::angleToDegrees((int) self::getArrayItem($xfrm->attributes(), 'rot')));
11421142
}
11431143
if ($outerShdw) {
11441144
$shadow = $objDrawing->getShadow();
11451145
$shadow->setVisible(true);
1146-
$shadow->setBlurRadius(Drawing::EMUToPixels(self::getArrayItem($outerShdw->attributes(), 'blurRad')));
1146+
$shadow->setBlurRadius(Drawing::EMUToPixels((int) self::getArrayItem($outerShdw->attributes(), 'blurRad')));
11471147
$shadow->setDistance(Drawing::EMUToPixels(self::getArrayItem($outerShdw->attributes(), 'dist')));
11481148
$shadow->setDirection(Drawing::angleToDegrees(self::getArrayItem($outerShdw->attributes(), 'dir')));
11491149
$shadow->setAlignment((string) self::getArrayItem($outerShdw->attributes(), 'algn'));
@@ -1563,7 +1563,7 @@ private static function readStyle(Style $docStyle, $style): void
15631563
// font
15641564
if (isset($style->font)) {
15651565
$docStyle->getFont()->setName((string) $style->font->name['val']);
1566-
$docStyle->getFont()->setSize((string) $style->font->sz['val']);
1566+
$docStyle->getFont()->setSize((float) $style->font->sz['val']);
15671567
if (isset($style->font->b)) {
15681568
$docStyle->getFont()->setBold(!isset($style->font->b['val']) || self::boolean((string) $style->font->b['val']));
15691569
}
@@ -1676,7 +1676,7 @@ private static function readStyle(Style $docStyle, $style): void
16761676

16771677
// top-level style settings
16781678
if (isset($style->quotePrefix)) {
1679-
$docStyle->setQuotePrefix($style->quotePrefix);
1679+
$docStyle->setQuotePrefix((bool) $style->quotePrefix);
16801680
}
16811681
}
16821682

0 commit comments

Comments
 (0)