Passed
Push — v1 ( b1dea4...d09897 )
by Andrew
15:26 queued 07:45
created
src/services/OptimizedImages.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/helpers/Manifest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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, '/ ');
Please login to merge, or discard this patch.