Passed
Push — develop ( bbfe99...164850 )
by Andrew
04:15
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.