refactor: kleinere Fehler Beseitigen

This commit is contained in:
2022-03-03 16:05:51 +01:00
parent 49ef3b83f6
commit def8066374
2 changed files with 1 additions and 2 deletions
@@ -49,7 +49,7 @@ abstract class AbstractHueSaturationValueToUtility
*
* @return float
*/
protected function calcColorValue($reciprocal = false): float
protected function calcColorValue(bool $reciprocal = false): float
{
// Rest-Anteil am Vollkreis des aktuellen Intervals als Wert '[0,1]'
$remainder_grad = $this->hueAsPercentGrad % self::INTERVAL;
@@ -114,7 +114,6 @@ class RedGreenBlueToHueSaturationValue
switch ($property) {
case self::PROPERTY_RED:
$amount = 0.0; // 0.0
$dividend = $this->green - $this->blu;
break;
case self::PROPERTY_GREEN: