Passed
Push — develop ( 752273...a18653 )
by Andrew
14:04 queued 07:14
created
src/services/Optimize.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.
src/services/OptimizedImages.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -425,14 +425,14 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.