Rückgaben nach Hinweisen von *PhpStan* angepasst.

This commit is contained in:
2021-03-23 16:12:35 +01:00
parent 15b425aa22
commit 6a26eb4608
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ use InvalidArgumentException;
abstract class AbstractColorModel
{
protected function checkValue(float $value)
protected function checkValue(float $value): void
{
if ($value > 1.0) {
throw new InvalidArgumentException('Ein Wert größer als 1 ist nicht definierbar.');
@@ -44,6 +44,11 @@ abstract class AbstractHueSaturationValueToUtility
abstract protected function splitColor(): void;
/**
* @param bool $reciprocal
*
* @return float
*/
protected function calcColorValue($reciprocal = false): float
{
// Rest-Anteil am Vollkreis des aktuellen Intervals als Wert '[0,1]'