Scrutinizer tweaks

This commit is contained in:
MarkBaker 2020-11-06 19:48:32 +01:00
parent d558e2ba99
commit 3f3a3174b5
2 changed files with 3 additions and 3 deletions

View File

@ -341,7 +341,7 @@ class Axis extends Properties
$this->setShadowPresetsProperties((int) $shadowPresets)
->setShadowColor(
$colorValue === null ? $this->shadowProperties['color']['value'] : $colorValue,
$colorAlpha === null ? (int) $this->shadowProperties['color']['alpha'] : $colorAlpha,
$colorAlpha === null ? $this->shadowProperties['color']['alpha'] : $colorAlpha,
$colorType === null ? $this->shadowProperties['color']['type'] : $colorType
)
->setShadowBlur($blur)

View File

@ -281,7 +281,7 @@ class GridLines extends Properties
* @param int $presets
* @param string $colorValue
* @param string $colorType
* @param int $colorAlpha
* @param string $colorAlpha
* @param string $blur
* @param int $angle
* @param float $distance
@ -292,7 +292,7 @@ class GridLines extends Properties
->setShadowPresetsProperties((int) $presets)
->setShadowColor(
$colorValue === null ? $this->shadowProperties['color']['value'] : $colorValue,
$colorAlpha === null ? (int) $this->shadowProperties['color']['alpha'] : $this->getTrueAlpha($colorAlpha),
$colorAlpha === null ? $this->shadowProperties['color']['alpha'] : $this->getTrueAlpha($colorAlpha),
$colorType === null ? $this->shadowProperties['color']['type'] : $colorType
)
->setShadowBlur($blur)