@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | if (Image::canManipulateAsImage($finalFormat) |
120 | 120 | && Image::canManipulateAsImage($finalFormat) |
121 | 121 | && $asset->height > 0) { |
122 | - $variant = [ |
|
122 | + $variant = [ |
|
123 | 123 | 'width' => $asset->width, |
124 | 124 | 'useAspectRatio' => false, |
125 | 125 | 'aspectRatioX' => $asset->width, |
@@ -201,11 +201,11 @@ discard block |
||
201 | 201 | } |
202 | 202 | $width = $variant['width'] * $retinaSize; |
203 | 203 | $transform->width = $width; |
204 | - $transform->height = (int)($width / $aspectRatio); |
|
204 | + $transform->height = (int) ($width / $aspectRatio); |
|
205 | 205 | // Image quality |
206 | 206 | $quality = $variant['quality']; |
207 | 207 | if ($settings->lowerQualityRetinaImageVariants && $retinaSize !== '1') { |
208 | - $quality = (int)($quality * (1.5 / (int)$retinaSize)); |
|
208 | + $quality = (int) ($quality * (1.5 / (int) $retinaSize)); |
|
209 | 209 | } |
210 | 210 | $transform->quality = $quality; |
211 | 211 | // Interlaced (progressive JPEGs or interlaced PNGs) |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | Craft::beginProfile('generatePlaceholderImage', __METHOD__); |
84 | 84 | $result = ''; |
85 | 85 | $width = self::PLACEHOLDER_WIDTH; |
86 | - $height = (int)($width / $aspectRatio); |
|
86 | + $height = (int) ($width / $aspectRatio); |
|
87 | 87 | $placeholderPath = $this->createImageFromPath($tempPath, $width, $height, self::PLACEHOLDER_QUALITY, $position); |
88 | 88 | if (!empty($placeholderPath)) { |
89 | 89 | $result = base64_encode(file_get_contents($placeholderPath)); |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | { |
176 | 176 | Craft::beginProfile('createTempPlaceholderImage', __METHOD__); |
177 | 177 | $width = self::TEMP_PLACEHOLDER_WIDTH; |
178 | - $height = (int)($width / $aspectRatio); |
|
178 | + $height = (int) ($width / $aspectRatio); |
|
179 | 179 | $tempPath = $this->createImageFromAsset($asset, $width, $height, self::TEMP_PLACEHOLDER_QUALITY, $position); |
180 | 180 | Craft::endProfile('createTempPlaceholderImage', __METHOD__); |
181 | 181 |