Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
timvandijck authored and github-actions[bot] committed May 17, 2024
1 parent 392385f commit e142332
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/Drivers/Gd/GdDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ public function fit(
?int $desiredHeight = null,
bool $relative = false,
string $backgroundColor = '#ffffff'
): static
{
): static {
if ($fit === Fit::Crop) {
return $this->fitCrop($fit, $this->getWidth(), $this->getHeight(), $desiredWidth, $desiredHeight);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Drivers/ImageDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public function sharpen(float $amount): static;
public function getSize(): Size;

public function fit(
Fit $fit,
?int $desiredWidth = null,
Fit $fit,
?int $desiredWidth = null,
?int $desiredHeight = null,
bool $relative = false,
string $backgroundColor = '#ffffff'
Expand Down
9 changes: 4 additions & 5 deletions src/Drivers/Imagick/ImagickDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,12 @@ public function blur(int $blur): static
}

public function fit(
Fit $fit,
?int $desiredWidth = null,
Fit $fit,
?int $desiredWidth = null,
?int $desiredHeight = null,
bool $relative = false,
string $backgroundColor = null,
): static
{
?string $backgroundColor = null,
): static {
if ($fit === Fit::Crop) {
return $this->fitCrop($fit, $this->getWidth(), $this->getHeight(), $desiredWidth, $desiredHeight);
}
Expand Down
3 changes: 1 addition & 2 deletions src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ public function fit(
?int $desiredHeight = null,
bool $relative = false,
string $backgroundColor = '#ffffff'
): static
{
): static {
$this->imageDriver->fit($fit, $desiredWidth, $desiredHeight, $relative, $backgroundColor);

return $this;
Expand Down

0 comments on commit e142332

Please sign in to comment.