@@ -56,9 +56,9 @@ public function run(ImageInterface $image): ImageInterface
56
56
$ fit = $ this ->getFit ();
57
57
$ dpr = $ this ->getDpr ();
58
58
59
- list ( $ width , $ height) = $ this ->resolveMissingDimensions ($ image , $ width , $ height );
60
- list ( $ width , $ height) = $ this ->applyDpr ($ width , $ height , $ dpr );
61
- list ( $ width , $ height) = $ this ->limitImageSize ($ width , $ height );
59
+ [ $ width , $ height] = $ this ->resolveMissingDimensions ($ image , $ width , $ height );
60
+ [ $ width , $ height] = $ this ->applyDpr ($ width , $ height , $ dpr );
61
+ [ $ width , $ height] = $ this ->limitImageSize ($ width , $ height );
62
62
63
63
if ($ width !== $ image ->width () || $ height !== $ image ->height () || 1.0 !== $ this ->getCrop ()[2 ]) {
64
64
$ image = $ this ->runResize ($ image , $ fit , $ width , $ height );
@@ -326,13 +326,13 @@ public function runStretchResize(ImageInterface $image, int $width, int $height)
326
326
*/
327
327
public function runCropResize (ImageInterface $ image , int $ width , int $ height ): ImageInterface
328
328
{
329
- list ( $ resize_width , $ resize_height) = $ this ->resolveCropResizeDimensions ($ image , $ width , $ height );
329
+ [ $ resize_width , $ resize_height] = $ this ->resolveCropResizeDimensions ($ image , $ width , $ height );
330
330
331
331
$ zoom = $ this ->getCrop ()[2 ];
332
332
333
333
$ image ->scale ((int ) round ($ resize_width * $ zoom ), (int ) round ($ resize_height * $ zoom ));
334
334
335
- list ( $ offset_x , $ offset_y) = $ this ->resolveCropOffset ($ image , $ width , $ height );
335
+ [ $ offset_x , $ offset_y] = $ this ->resolveCropOffset ($ image , $ width , $ height );
336
336
337
337
return $ image ->crop ($ width , $ height , $ offset_x , $ offset_y );
338
338
}
@@ -366,7 +366,7 @@ public function resolveCropResizeDimensions(ImageInterface $image, int $width, i
366
366
*/
367
367
public function resolveCropOffset (ImageInterface $ image , int $ width , int $ height ): array
368
368
{
369
- list ( $ offset_percentage_x , $ offset_percentage_y) = $ this ->getCrop ();
369
+ [ $ offset_percentage_x , $ offset_percentage_y] = $ this ->getCrop ();
370
370
371
371
$ offset_x = (int ) (($ image ->width () * $ offset_percentage_x / 100 ) - ($ width / 2 ));
372
372
$ offset_y = (int ) (($ image ->height () * $ offset_percentage_y / 100 ) - ($ height / 2 ));
0 commit comments