Passed
Push — develop ( 6aaedb...4704dc )
by Andrew
08:20
created
src/services/Optimize.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
             $vars,
278 278
             $minifier
279 279
         );
280
-        $content = (string)$content;
280
+        $content = (string) $content;
281 281
         if ($scriptAttrs !== null) {
282 282
             $attrs = array_merge([
283 283
                 ],
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
             $vars,
313 313
             $minifier
314 314
         );
315
-        $content = (string)$content;
315
+        $content = (string) $content;
316 316
         if ($scriptAttrs !== null) {
317 317
             $attrs = array_merge([
318 318
             ],
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
                 .'%';
377 377
             Craft::info($message, __METHOD__);
378 378
             if (Craft::$app instanceof ConsoleApplication) {
379
-                echo $message . PHP_EOL;
379
+                echo $message.PHP_EOL;
380 380
             }
381 381
             // Create any image variants
382 382
             $this->createImageVariants(
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
                             .'%';
532 532
                         Craft::info($message, __METHOD__);
533 533
                         if (Craft::$app instanceof ConsoleApplication) {
534
-                            echo $message . PHP_EOL;
534
+                            echo $message.PHP_EOL;
535 535
                         }
536 536
                         // Copy the image variant into place
537 537
                         $this->copyImageVariantToVolume(
@@ -630,8 +630,8 @@  discard block
 block discarded – undo
630 630
                 // Handle auto-sharpening scaled down images
631 631
                 if ($settings->autoSharpenScaledImages) {
632 632
                     // See if the image has been scaled >= 50%
633
-                    $widthScale = (int)(($image->getWidth() / $asset->getWidth()) * 100);
634
-                    $heightScale =  (int)(($image->getHeight() / $asset->getHeight()) * 100);
633
+                    $widthScale = (int) (($image->getWidth() / $asset->getWidth()) * 100);
634
+                    $heightScale = (int) (($image->getHeight() / $asset->getHeight()) * 100);
635 635
                     if (($widthScale >= $settings->sharpenScaledImagePercentage) || ($heightScale >= $settings->sharpenScaledImagePercentage)) {
636 636
                         $imagineImage->effects()
637 637
                             ->sharpen();
Please login to merge, or discard this patch.