Passed
Push — develop ( b4966a...ca687a )
by Andrew
04:41
created
src/models/OptimizedImage.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
      */
434 434
     public function getPlaceholderImage(): string
435 435
     {
436
-        return (string)$this->placeholderImage();
436
+        return (string) $this->placeholderImage();
437 437
     }
438 438
 
439 439
     /**
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
      */
471 471
     public function getPlaceholderBox(string $color = null): string
472 472
     {
473
-        return (string)$this->placeholderBox($color);
473
+        return (string) $this->placeholderBox($color);
474 474
     }
475 475
 
476 476
     /**
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
      */
512 512
     public function getPlaceholderSilhouette(): string
513 513
     {
514
-        return (string)$this->placeholderSilhouette();
514
+        return (string) $this->placeholderSilhouette();
515 515
     }
516 516
 
517 517
     /**
@@ -623,10 +623,10 @@  discard block
 block discarded – undo
623 623
         foreach ($array as $key => $value) {
624 624
             if ($dpr) {
625 625
                 $descriptor = '1x';
626
-                if (!empty($array[(int)$key / 2])) {
626
+                if (!empty($array[(int) $key / 2])) {
627 627
                     $descriptor = '2x';
628 628
                 }
629
-                if (!empty($array[(int)$key / 3])) {
629
+                if (!empty($array[(int) $key / 3])) {
630 630
                     $descriptor = '3x';
631 631
                 }
632 632
             } else {
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
     protected function swapLazyLoadAttrs(string $lazyLoad, array $attrs): array
664 664
     {
665 665
         if (isset($attrs['class'])) {
666
-            $attrs['class'] = trim($attrs['class'] . ' lazyload');
666
+            $attrs['class'] = trim($attrs['class'].' lazyload');
667 667
         }
668 668
         if (!empty($attrs['loading'])) {
669 669
             $attrs['loading'] = 'lazy';
Please login to merge, or discard this patch.