Skip to content

Commit 992b866

Browse files
committed
Add code improvements
1 parent 88c24d1 commit 992b866

9 files changed

+2
-12
lines changed

src/Colors/Cmyk/Channels/Key.php

-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66

77
class Key extends Cyan
88
{
9-
//
109
}

src/Colors/Cmyk/Channels/Magenta.php

-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66

77
class Magenta extends Cyan
88
{
9-
//
109
}

src/Colors/Cmyk/Channels/Yellow.php

-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66

77
class Yellow extends Cyan
88
{
9-
//
109
}

src/Drivers/Gd/Frame.php

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public function __construct(
3232
protected int $offset_left = 0,
3333
protected int $offset_top = 0
3434
) {
35-
//
3635
}
3736

3837
/**

src/ModifierStack.php

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class ModifierStack implements ModifierInterface
1717
*/
1818
public function __construct(protected array $modifiers)
1919
{
20-
//
2120
}
2221

2322
/**

src/Modifiers/CoverModifier.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@ public function __construct(
2424
public function getCropSize(ImageInterface $image): SizeInterface
2525
{
2626
$imagesize = $image->size();
27-
2827
$crop = new Rectangle($this->width, $this->height);
29-
$crop = $crop->contain(
28+
29+
return $crop->contain(
3030
$imagesize->width(),
3131
$imagesize->height()
3232
)->alignPivotTo($imagesize, $this->position);
33-
34-
return $crop;
3533
}
3634

3735
/**

src/Modifiers/GammaModifier.php

-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ class GammaModifier extends SpecializableModifier
88
{
99
public function __construct(public float $gamma)
1010
{
11-
//
1211
}
1312
}

src/Modifiers/RemoveAnimationModifier.php

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class RemoveAnimationModifier extends SpecializableModifier
1313
{
1414
public function __construct(public int|string $position = 0)
1515
{
16-
//
1716
}
1817

1918
/**

src/Resolution.php

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public function __construct(
2323
protected float $y,
2424
protected int $per_unit = self::PER_INCH
2525
) {
26-
//
2726
}
2827

2928
/**

0 commit comments

Comments
 (0)