Completed
Pull Request — master (#2040)
by Basil
02:29
created
core/lazyload/LazyLoad.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -172,21 +172,21 @@
 block discarded – undo
172 172
     public function run()
173 173
     {
174 174
         if ($this->placeholderSrc && $this->placeholderAsBase64) {
175
-            $this->placeholderSrc = 'data:image/jpg;base64,' . base64_encode(file_get_contents($this->placeholderSrc));
175
+            $this->placeholderSrc = 'data:image/jpg;base64,'.base64_encode(file_get_contents($this->placeholderSrc));
176 176
         }
177 177
 
178 178
         if ($this->attributesOnly && !$this->placeholderSrc) {
179 179
             return "class=\"js-lazyimage {$this->extraClass}\" data-src=\"$this->src\" data-width=\"$this->width\" data-height=\"$this->height\" data-as-background=\"1\"";
180 180
         }
181 181
 
182
-        $tag = '<div class="lazyimage-wrapper ' . $this->extraClass . '">';
182
+        $tag = '<div class="lazyimage-wrapper '.$this->extraClass.'">';
183 183
         $tag .= Html::tag('img', '', array_merge($this->options, ['class' => 'js-lazyimage lazyimage', 'data-src' => $this->src, 'data-width' => $this->width, 'data-height' => $this->height]));
184 184
         if ($this->placeholderSrc) {
185 185
             $tag .= Html::tag('img', '', ['class' => 'lazyimage-placeholder', 'src' => $this->placeholderSrc]);
186 186
         } else {
187
-            $tag .= '<div class="lazyimage-placeholder"><div style="display: block; height: 0px; padding-bottom: ' . $this->generateAspectRation() . '%;"></div><div class="loader"></div></div>';
187
+            $tag .= '<div class="lazyimage-placeholder"><div style="display: block; height: 0px; padding-bottom: '.$this->generateAspectRation().'%;"></div><div class="loader"></div></div>';
188 188
         }
189
-        $tag .= '<noscript><img class="lazyimage loaded ' . $this->extraClass . '" src="'.$this->src.'" /></noscript>';
189
+        $tag .= '<noscript><img class="lazyimage loaded '.$this->extraClass.'" src="'.$this->src.'" /></noscript>';
190 190
         $tag .= '</div>';
191 191
 
192 192
         return $tag;
Please login to merge, or discard this patch.