@@ -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) |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | $cache = Craft::$app->getCache(); |
287 | 287 | $file = $cache->getOrSet( |
288 | 288 | self::CACHE_KEY.$path, |
289 | - function () use ($path) { |
|
289 | + function() use ($path) { |
|
290 | 290 | $result = null; |
291 | 291 | $string = @file_get_contents($path); |
292 | 292 | if ($string) { |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | protected static function combinePaths(string ...$paths): string |
314 | 314 | { |
315 | 315 | $last_key = \count($paths) - 1; |
316 | - array_walk($paths, function (&$val, $key) use ($last_key) { |
|
316 | + array_walk($paths, function(&$val, $key) use ($last_key) { |
|
317 | 317 | switch ($key) { |
318 | 318 | case 0: |
319 | 319 | $val = rtrim($val, '/ '); |