Skip to content

ci: configure Flux Pro authentication in GitHub Actions workflow #12

ci: configure Flux Pro authentication in GitHub Actions workflow

ci: configure Flux Pro authentication in GitHub Actions workflow #12

Triggered via pull request December 23, 2025 21:23
@Muetze42Muetze42
synchronize #56
development
Status Success
Total duration 9m 27s
Artifacts 2

tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
infection: app/Http/Controllers/OgImageController.php#L261
Escaped Mutant for Mutator "IncrementInteger": @@ @@ $progress = ($y - $gradientStart) / ($this->height - $gradientStart); /** @var int<0, 127> $alpha */ $alpha = max(0, min(127, (int) (127 - $progress * 100))); - $color = imagecolorallocatealpha($canvas, 0, 0, 0, $alpha); + $color = imagecolorallocatealpha($canvas, 1, 0, 0, $alpha); if ($color !== false) { imageline($canvas, 0, $y, $this->width, $y, $color); }
infection: app/Http/Controllers/OgImageController.php#L259
Escaped Mutant for Mutator "CastInt": @@ @@ } $progress = ($y - $gradientStart) / ($this->height - $gradientStart); /** @var int<0, 127> $alpha */ - $alpha = max(0, min(127, (int) (127 - $progress * 100))); + $alpha = max(0, min(127, 127 - $progress * 100)); $color = imagecolorallocatealpha($canvas, 0, 0, 0, $alpha); if ($color !== false) { imageline($canvas, 0, $y, $this->width, $y, $color);
infection: app/Http/Controllers/OgImageController.php#L259
Escaped Mutant for Mutator "DecrementInteger": @@ @@ } $progress = ($y - $gradientStart) / ($this->height - $gradientStart); /** @var int<0, 127> $alpha */ - $alpha = max(0, min(127, (int) (127 - $progress * 100))); + $alpha = max(0, min(126, (int) (127 - $progress * 100))); $color = imagecolorallocatealpha($canvas, 0, 0, 0, $alpha); if ($color !== false) { imageline($canvas, 0, $y, $this->width, $y, $color);
infection: app/Http/Controllers/OgImageController.php#L259
Escaped Mutant for Mutator "IncrementInteger": @@ @@ } $progress = ($y - $gradientStart) / ($this->height - $gradientStart); /** @var int<0, 127> $alpha */ - $alpha = max(0, min(127, (int) (127 - $progress * 100))); + $alpha = max(1, min(127, (int) (127 - $progress * 100))); $color = imagecolorallocatealpha($canvas, 0, 0, 0, $alpha); if ($color !== false) { imageline($canvas, 0, $y, $this->width, $y, $color);
infection: app/Http/Controllers/OgImageController.php#L259
Escaped Mutant for Mutator "DecrementInteger": @@ @@ } $progress = ($y - $gradientStart) / ($this->height - $gradientStart); /** @var int<0, 127> $alpha */ - $alpha = max(0, min(127, (int) (127 - $progress * 100))); + $alpha = max(-1, min(127, (int) (127 - $progress * 100))); $color = imagecolorallocatealpha($canvas, 0, 0, 0, $alpha); if ($color !== false) { imageline($canvas, 0, $y, $this->width, $y, $color);
infection: app/Http/Controllers/OgImageController.php#L256
Escaped Mutant for Mutator "Division": @@ @@ if ($y < $gradientStart) { continue; } - $progress = ($y - $gradientStart) / ($this->height - $gradientStart); + $progress = ($y - $gradientStart) * ($this->height - $gradientStart); /** @var int<0, 127> $alpha */ $alpha = max(0, min(127, (int) (127 - $progress * 100))); $color = imagecolorallocatealpha($canvas, 0, 0, 0, $alpha);
infection: app/Http/Controllers/OgImageController.php#L253
Escaped Mutant for Mutator "Continue_": @@ @@ $gradientStart = $this->height * 0.3; for ($y = 0; $y < $this->height; $y++) { if ($y < $gradientStart) { - continue; + break; } $progress = ($y - $gradientStart) / ($this->height - $gradientStart); /** @var int<0, 127> $alpha */
infection: app/Http/Controllers/OgImageController.php#L252
Escaped Mutant for Mutator "LessThan": @@ @@ { $gradientStart = $this->height * 0.3; for ($y = 0; $y < $this->height; $y++) { - if ($y < $gradientStart) { + if ($y <= $gradientStart) { continue; } $progress = ($y - $gradientStart) / ($this->height - $gradientStart);
infection: app/Http/Controllers/OgImageController.php#L249
Escaped Mutant for Mutator "Multiplication": @@ @@ */ protected function addGradientOverlay(GdImage $canvas): void { - $gradientStart = $this->height * 0.3; + $gradientStart = $this->height / 0.3; for ($y = 0; $y < $this->height; $y++) { if ($y < $gradientStart) { continue;
infection: app/Http/Clients/HelloFresh/Responses/MenusResponse.php#L132
Escaped Mutant for Mutator "CastInt": @@ @@ { // HelloFresh weeks start on Saturday $date = Date::now(); - $date->setISODate((int) substr($week, 0, 4), (int) substr($week, 6)); + $date->setISODate((int) substr($week, 0, 4), substr($week, 6)); // ISO week starts Monday, HelloFresh starts Saturday (day before = -2) $date->modify('-2 days'); return $date->format('Y-m-d'); } }

Artifacts

Produced during runtime
Name Size Digest
coverage-report Expired
17.7 KB
sha256:78270e6ba45cd2f6f9c5157a2a0f1fd944426997d7fc24f73dd53783bba6893a
infection-report Expired
22 KB
sha256:2185aec3d0787f82e8d0aa29c02b323c78e19daede926fbc5aa7586fc6fd4f5d