@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | */ |
248 | 248 | public function runContainResize(Image $image, $width, $height) |
249 | 249 | { |
250 | - return $image->resize($width, $height, function ($constraint) { |
|
250 | + return $image->resize($width, $height, function($constraint) { |
|
251 | 251 | $constraint->aspectRatio(); |
252 | 252 | }); |
253 | 253 | } |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | */ |
262 | 262 | public function runMaxResize(Image $image, $width, $height) |
263 | 263 | { |
264 | - return $image->resize($width, $height, function ($constraint) { |
|
264 | + return $image->resize($width, $height, function($constraint) { |
|
265 | 265 | $constraint->aspectRatio(); |
266 | 266 | $constraint->upsize(); |
267 | 267 | }); |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | |
307 | 307 | $zoom = $this->getCrop()[2]; |
308 | 308 | |
309 | - $image->resize($resize_width * $zoom, $resize_height * $zoom, function ($constraint) { |
|
309 | + $image->resize($resize_width * $zoom, $resize_height * $zoom, function($constraint) { |
|
310 | 310 | $constraint->aspectRatio(); |
311 | 311 | }); |
312 | 312 |
@@ -127,7 +127,7 @@ |
||
127 | 127 | $width / 2, |
128 | 128 | $image->width() - ($width / 2), |
129 | 129 | $image->height() - ($width / 2), |
130 | - function ($draw) use ($width, $color) { |
|
130 | + function($draw) use ($width, $color) { |
|
131 | 131 | $draw->border($width, $color); |
132 | 132 | } |
133 | 133 | ); |
@@ -22,8 +22,8 @@ |
||
22 | 22 | |
23 | 23 | if (in_array($format, ['jpg', 'pjpg'], true)) { |
24 | 24 | $image = $image->getDriver() |
25 | - ->newImage($image->width(), $image->height(), '#fff') |
|
26 | - ->insert($image, 'top-left', 0, 0); |
|
25 | + ->newImage($image->width(), $image->height(), '#fff') |
|
26 | + ->insert($image, 'top-left', 0, 0); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | if ($format === 'pjpg') { |