@@ -208,7 +208,7 @@ |
||
208 | 208 | if (ImageHelper::canManipulateAsImage($asset->getExtension())) { |
209 | 209 | $transform = new AssetTransform([ |
210 | 210 | 'width' => $event->width, |
211 | - 'height' => $event->height, |
|
211 | + 'height' => $event->height, |
|
212 | 212 | 'interlace' => 'line', |
213 | 213 | ]); |
214 | 214 | /** @var ImageTransform $transformMethod */ |
@@ -425,14 +425,14 @@ |
||
425 | 425 | } |
426 | 426 | $width = $variant['width'] * $retinaSize; |
427 | 427 | $transform->width = $width; |
428 | - $transform->height = (int)($width / $aspectRatio); |
|
428 | + $transform->height = (int) ($width / $aspectRatio); |
|
429 | 429 | // Image quality |
430 | - $quality = (int)($variant['quality'] ?? null); |
|
430 | + $quality = (int) ($variant['quality'] ?? null); |
|
431 | 431 | if (empty($quality)) { |
432 | 432 | $quality = null; |
433 | 433 | } |
434 | 434 | if ($quality !== null && $settings->lowerQualityRetinaImageVariants && $retinaSize != '1') { |
435 | - $quality = (int)($quality * (1.5 / (int)$retinaSize)); |
|
435 | + $quality = (int) ($quality * (1.5 / (int) $retinaSize)); |
|
436 | 436 | } |
437 | 437 | $transform->quality = $quality; |
438 | 438 | // Interlaced (progressive JPEGs or interlaced PNGs) |