@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $w = (($imgWidth / $imgHeight) * $h); |
| 55 | 55 | |
| 56 | 56 | //if height based resize has too large width, do width based resize |
| 57 | - if($h>$availableHeight) |
|
| 57 | + if ($h > $availableHeight) |
|
| 58 | 58 | { |
| 59 | 59 | $w = (($imgWidth / $imgHeight) * $availableHeight); |
| 60 | 60 | $h = (($imgHeight / $imgWidth) * $w); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | $h = null; |
| 64 | 64 | |
| 65 | - $img_rework->resize($w, $h, function ($constraint) { |
|
| 65 | + $img_rework->resize($w, $h, function($constraint) { |
|
| 66 | 66 | $constraint->aspectRatio(); |
| 67 | 67 | $constraint->upsize(); |
| 68 | 68 | }); |