GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 8dbce3...a69053 )
by Patrick
02:15
created

src/Transition/HSVTransition.php (3 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Artack\Color\Transition;
6
7
use Artack\Color\Color\Color;
8
use Artack\Color\Color\HSV;
9
use Artack\Color\Color\RGB;
10
11
class HSVTransition implements TransitionInterface
12
{
13
    public static function interpolate(Color $startColor, Color $endColor, float $value, float $max): Color
14
    {
15
        $step = $value / $max;
16
17
        $hue = $startColor->getHue() + ($endColor->getHue() - $startColor->getHue()) * $step;
0 ignored issues
show
The method getHue() does not exist on Artack\Color\Color\Color. It seems like you code against a sub-type of Artack\Color\Color\Color such as Artack\Color\Color\HSV. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
        $hue = $startColor->/** @scrutinizer ignore-call */ getHue() + ($endColor->getHue() - $startColor->getHue()) * $step;
Loading history...
18
        $saturation = $startColor->getSaturation() + ($endColor->getSaturation() - $startColor->getSaturation()) * $step;
0 ignored issues
show
The method getSaturation() does not exist on Artack\Color\Color\Color. It seems like you code against a sub-type of Artack\Color\Color\Color such as Artack\Color\Color\HSV. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

18
        $saturation = $startColor->/** @scrutinizer ignore-call */ getSaturation() + ($endColor->getSaturation() - $startColor->getSaturation()) * $step;
Loading history...
19
        $value = $startColor->getValue() + ($endColor->getValue() - $startColor->getValue()) * $step;
0 ignored issues
show
The method getValue() does not exist on Artack\Color\Color\Color. It seems like you code against a sub-type of Artack\Color\Color\Color such as Artack\Color\Color\HSV. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

19
        $value = $startColor->/** @scrutinizer ignore-call */ getValue() + ($endColor->getValue() - $startColor->getValue()) * $step;
Loading history...
20
21
        return new HSV((int) round($hue), $saturation, $value);
22
    }
23
}
24