Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ariaieboy authored and github-actions[bot] committed Dec 15, 2023
1 parent 4b28f80 commit 98756bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Drivers/Gd/GdDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function save(?string $path = null): static
imagewebp($this->image, $path);
break;
case 'avif':
imageavif($this->image,$path);
imageavif($this->image, $path);
break;
default:
throw UnsupportedImageFormat::make($extension);
Expand Down
2 changes: 1 addition & 1 deletion tests/ImageFormatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$driver->loadFile(getTestJpg())->save($targetFile);

expect($targetFile)->toHaveMime("image/$format");
})->with('drivers', ['jpeg', 'gif', 'png', 'webp','avif']);
})->with('drivers', ['jpeg', 'gif', 'png', 'webp', 'avif']);

it('can save tiff', function () {
$format = 'tiff';
Expand Down
2 changes: 1 addition & 1 deletion tests/Manipulations/QualityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
$driver->loadFile(getTestJpg())->quality($quality)->save($targetFile);

expect($targetFile)->toBeFile()->toHaveMime("image/$format");
})->with('drivers')->with(['jpeg', 'png', 'webp','avif'])->with([10, 50, 90]);
})->with('drivers')->with(['jpeg', 'png', 'webp', 'avif'])->with([10, 50, 90]);

0 comments on commit 98756bb

Please sign in to comment.