Skip to content

Commit 4c3482b

Browse files
authored
Code style improvements
1 parent a57ea89 commit 4c3482b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Plugin/Amasty/PageSpeedOptimizer/Model/Output/LazyLoadProcessorPlugin.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
/**
1414
* Class LazyLoadProcessorPlugin
15-
* @package Magefan\LazyLoad\Plugin\Amasty\PageSpeedOptimizer\Model\Output
1615
*/
1716
class LazyLoadProcessorPlugin
1817
{
@@ -21,6 +20,10 @@ class LazyLoadProcessorPlugin
2120
*/
2221
private $config;
2322

23+
/**
24+
* LazyLoadProcessorPlugin constructor.
25+
* @param Config $config
26+
*/
2427
public function __construct(
2528
Config $config
2629

@@ -47,7 +50,7 @@ public function aroundReplaceWithPictureTag($subject, callable $proceed, $image,
4750

4851
$doStr = 'data-original="';
4952
$p1 = strpos($image, $doStr);
50-
53+
5154
if ($p1 !== false) {
5255
$p1 += strlen($doStr);
5356
$p2 = strpos($image, '"', $p1);
@@ -60,6 +63,7 @@ public function aroundReplaceWithPictureTag($subject, callable $proceed, $image,
6063
$html = $proceed($image, $imagePath);
6164

6265
if ($originImagePath != $imagePath) {
66+
6367
if (strpos($html, '<picture') !== false) {
6468
$tmpSrc = 'TMP_SRC';
6569
$pixelSrc = 'srcset="' . $originImagePath . '"';
@@ -74,6 +78,5 @@ public function aroundReplaceWithPictureTag($subject, callable $proceed, $image,
7478
}
7579

7680
return $html;
77-
7881
}
79-
}
82+
}

0 commit comments

Comments
 (0)