mirror of
https://github.com/Intervention/image.git
synced 2025-08-31 09:31:53 +02:00
Add code improvements
This commit is contained in:
@@ -6,5 +6,4 @@ namespace Intervention\Image\Colors\Cmyk\Channels;
|
||||
|
||||
class Key extends Cyan
|
||||
{
|
||||
//
|
||||
}
|
||||
|
@@ -6,5 +6,4 @@ namespace Intervention\Image\Colors\Cmyk\Channels;
|
||||
|
||||
class Magenta extends Cyan
|
||||
{
|
||||
//
|
||||
}
|
||||
|
@@ -6,5 +6,4 @@ namespace Intervention\Image\Colors\Cmyk\Channels;
|
||||
|
||||
class Yellow extends Cyan
|
||||
{
|
||||
//
|
||||
}
|
||||
|
@@ -32,7 +32,6 @@ class Frame implements FrameInterface
|
||||
protected int $offset_left = 0,
|
||||
protected int $offset_top = 0
|
||||
) {
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -17,7 +17,6 @@ class ModifierStack implements ModifierInterface
|
||||
*/
|
||||
public function __construct(protected array $modifiers)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -8,6 +8,5 @@ class GammaModifier extends SpecializableModifier
|
||||
{
|
||||
public function __construct(public float $gamma)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
|
@@ -13,7 +13,6 @@ class RemoveAnimationModifier extends SpecializableModifier
|
||||
{
|
||||
public function __construct(public int|string $position = 0)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -23,7 +23,6 @@ class Resolution implements ResolutionInterface
|
||||
protected float $y,
|
||||
protected int $per_unit = self::PER_INCH
|
||||
) {
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user