Passed
Push — v5 ( d2d820...ed79af )
by Andrew
18:01 queued 12:30
created
src/models/BaseImageTag.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         // Set the class and loading attributes
33 33
         if (isset($attrs['class'])) {
34
-            $attrs['class'] = trim($attrs['class'] . ' lazyload');
34
+            $attrs['class'] = trim($attrs['class'].' lazyload');
35 35
         }
36 36
         // Set the style on this element to be the placeholder image as the background-image
37 37
         if (isset($attrs['style']) && !empty($attrs['src'])) {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             $path = parse_url($attrs['src'], PHP_URL_PATH);
43 43
             $extension = pathinfo($path, PATHINFO_EXTENSION);
44 44
             if ($extension !== 'svg' && $extension !== 'gif') {
45
-                $attrs['style']['background-image'] = 'url(' . $this->getLazyLoadSrc($placeHolder) . ')';
45
+                $attrs['style']['background-image'] = 'url('.$this->getLazyLoadSrc($placeHolder).')';
46 46
                 $attrs['style']['background-size'] = 'cover';
47 47
             }
48 48
         }
Please login to merge, or discard this patch.