Skip to content

Commit 3e9d760

Browse files
bonzaiStyleCIBot
andauthored
Apply fixes from StyleCI (#24)
Co-authored-by: StyleCI Bot <bot@styleci.io>
1 parent cb9abb7 commit 3e9d760

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Commands/ResizeCanvasCommand.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Intervention\Image\Vips\Commands;
66

7-
87
use Intervention\Image\Vips\Color;
98
use Jcupitt\Vips\Extend;
109
use Jcupitt\Vips\Image;
@@ -43,7 +42,7 @@ public function execute($image): bool
4342
$height = ($height <= 0) ? $height + $original_height : $height;
4443

4544
return $this->handleCommand(
46-
function () use($image, $width, $height, $anchor, $bgcolor) {
45+
function () use ($image, $width, $height, $anchor, $bgcolor) {
4746

4847
/** @var Image $core */
4948
$core = $image->getCore();
@@ -57,12 +56,12 @@ function () use($image, $width, $height, $anchor, $bgcolor) {
5756
'right' => 'east',
5857
'bottom-left' => 'south-west',
5958
'bottom' => 'south',
60-
'bottom-right' => 'south-east'
59+
'bottom-right' => 'south-east',
6160
];
6261

6362
$color = new Color($bgcolor);
6463

65-
if(!$core->hasAlpha()) {
64+
if (! $core->hasAlpha()) {
6665
$core = $core->bandjoin_const(255);
6766
}
6867
$core = $core->gravity(

0 commit comments

Comments
 (0)