diff --git a/src/Colors/Cmyk/Channels/Key.php b/src/Colors/Cmyk/Channels/Key.php index b1f221d9..68524cf9 100644 --- a/src/Colors/Cmyk/Channels/Key.php +++ b/src/Colors/Cmyk/Channels/Key.php @@ -6,5 +6,4 @@ namespace Intervention\Image\Colors\Cmyk\Channels; class Key extends Cyan { - // } diff --git a/src/Colors/Cmyk/Channels/Magenta.php b/src/Colors/Cmyk/Channels/Magenta.php index 26ab1d43..bc5df513 100644 --- a/src/Colors/Cmyk/Channels/Magenta.php +++ b/src/Colors/Cmyk/Channels/Magenta.php @@ -6,5 +6,4 @@ namespace Intervention\Image\Colors\Cmyk\Channels; class Magenta extends Cyan { - // } diff --git a/src/Colors/Cmyk/Channels/Yellow.php b/src/Colors/Cmyk/Channels/Yellow.php index 311c93f0..d9c7dd5d 100644 --- a/src/Colors/Cmyk/Channels/Yellow.php +++ b/src/Colors/Cmyk/Channels/Yellow.php @@ -6,5 +6,4 @@ namespace Intervention\Image\Colors\Cmyk\Channels; class Yellow extends Cyan { - // } diff --git a/src/Drivers/Gd/Frame.php b/src/Drivers/Gd/Frame.php index 690f7f8f..af1f3f19 100644 --- a/src/Drivers/Gd/Frame.php +++ b/src/Drivers/Gd/Frame.php @@ -32,7 +32,6 @@ class Frame implements FrameInterface protected int $offset_left = 0, protected int $offset_top = 0 ) { - // } /** diff --git a/src/ModifierStack.php b/src/ModifierStack.php index a69bc009..97705dc4 100644 --- a/src/ModifierStack.php +++ b/src/ModifierStack.php @@ -17,7 +17,6 @@ class ModifierStack implements ModifierInterface */ public function __construct(protected array $modifiers) { - // } /** diff --git a/src/Modifiers/CoverModifier.php b/src/Modifiers/CoverModifier.php index 06bb6793..7417ecfb 100644 --- a/src/Modifiers/CoverModifier.php +++ b/src/Modifiers/CoverModifier.php @@ -24,14 +24,12 @@ class CoverModifier extends SpecializableModifier public function getCropSize(ImageInterface $image): SizeInterface { $imagesize = $image->size(); - $crop = new Rectangle($this->width, $this->height); - $crop = $crop->contain( + + return $crop->contain( $imagesize->width(), $imagesize->height() )->alignPivotTo($imagesize, $this->position); - - return $crop; } /** diff --git a/src/Modifiers/GammaModifier.php b/src/Modifiers/GammaModifier.php index c99c81b4..3150676e 100644 --- a/src/Modifiers/GammaModifier.php +++ b/src/Modifiers/GammaModifier.php @@ -8,6 +8,5 @@ class GammaModifier extends SpecializableModifier { public function __construct(public float $gamma) { - // } } diff --git a/src/Modifiers/RemoveAnimationModifier.php b/src/Modifiers/RemoveAnimationModifier.php index cabba2b1..af961976 100644 --- a/src/Modifiers/RemoveAnimationModifier.php +++ b/src/Modifiers/RemoveAnimationModifier.php @@ -13,7 +13,6 @@ class RemoveAnimationModifier extends SpecializableModifier { public function __construct(public int|string $position = 0) { - // } /** diff --git a/src/Resolution.php b/src/Resolution.php index 3facc5d5..ef4a6921 100644 --- a/src/Resolution.php +++ b/src/Resolution.php @@ -23,7 +23,6 @@ class Resolution implements ResolutionInterface protected float $y, protected int $per_unit = self::PER_INCH ) { - // } /**