Skip to content

Commit 41162b1

Browse files
committed
Keep PHPStan happy
1 parent 0fd2683 commit 41162b1

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

webapp/src/Utils/Utils.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,13 @@ public static function blendAlphaBackground(array $rgba, string $bg): array
400400
{
401401
if (count($rgba) === 3) {
402402
return $rgba;
403-
} elseif (count($rgba) === 4) {
404-
$result = [];
405-
$bg = static::parseHexColor($bg);
406-
for ($i=0; $i<3; $i++) {
407-
$result[] = $rgba[$i] * $rgba[3] + $bg[$i] * (1 - $rgba[3]);
408-
}
409-
return $result;
410-
}
403+
}
404+
$result = [];
405+
$bg = static::parseHexColor($bg);
406+
for ($i=0; $i<3; $i++) {
407+
$result[] = $rgba[$i] * $rgba[3] + $bg[$i] * (1 - $rgba[3]);
408+
}
409+
return $result;
411410
}
412411

413412
public static function relativeLuminance(string $hexRGB, string $rgb_background = "#fff"): float

0 commit comments

Comments
 (0)