@@ -520,7 +520,7 @@ discard block |
||
520 | 520 | */ |
521 | 521 | public function getPlaceholderImage(): string |
522 | 522 | { |
523 | - return (string)$this->placeholderImage(); |
|
523 | + return (string) $this->placeholderImage(); |
|
524 | 524 | } |
525 | 525 | |
526 | 526 | /** |
@@ -557,7 +557,7 @@ discard block |
||
557 | 557 | */ |
558 | 558 | public function getPlaceholderBox(string $color = null): string |
559 | 559 | { |
560 | - return (string)$this->placeholderBox($color); |
|
560 | + return (string) $this->placeholderBox($color); |
|
561 | 561 | } |
562 | 562 | |
563 | 563 | /** |
@@ -598,7 +598,7 @@ discard block |
||
598 | 598 | */ |
599 | 599 | public function getPlaceholderSilhouette(): string |
600 | 600 | { |
601 | - return (string)$this->placeholderSilhouette(); |
|
601 | + return (string) $this->placeholderSilhouette(); |
|
602 | 602 | } |
603 | 603 | |
604 | 604 | /** |
@@ -710,10 +710,10 @@ discard block |
||
710 | 710 | foreach ($array as $key => $value) { |
711 | 711 | if ($dpr) { |
712 | 712 | $descriptor = '1x'; |
713 | - if (!empty($array[(int)$key / 2])) { |
|
713 | + if (!empty($array[(int) $key / 2])) { |
|
714 | 714 | $descriptor = '2x'; |
715 | 715 | } |
716 | - if (!empty($array[(int)$key / 3])) { |
|
716 | + if (!empty($array[(int) $key / 3])) { |
|
717 | 717 | $descriptor = '3x'; |
718 | 718 | } |
719 | 719 | } else { |
@@ -750,7 +750,7 @@ discard block |
||
750 | 750 | protected function swapLazyLoadAttrs(string $lazyLoad, array $attrs): array |
751 | 751 | { |
752 | 752 | if (isset($attrs['class'])) { |
753 | - $attrs['class'] = trim($attrs['class'] . ' lazyload'); |
|
753 | + $attrs['class'] = trim($attrs['class'].' lazyload'); |
|
754 | 754 | } |
755 | 755 | if (!empty($attrs['loading'])) { |
756 | 756 | $attrs['loading'] = 'lazy'; |
@@ -764,8 +764,8 @@ discard block |
||
764 | 764 | $attrs['src'] = $this->getLazyLoadSrc($lazyLoad); |
765 | 765 | if (isset($attrs['style'])) { |
766 | 766 | $attrs['style'] = trim( |
767 | - $attrs['style'] . |
|
768 | - 'background-image:url(' . $this->getLazyLoadSrc($lazyLoad) . '); background-size: cover;' |
|
767 | + $attrs['style']. |
|
768 | + 'background-image:url('.$this->getLazyLoadSrc($lazyLoad).'); background-size: cover;' |
|
769 | 769 | ); |
770 | 770 | } |
771 | 771 | } |