Skip to content

Commit 3660533

Browse files
committed
Improve code, DEV-1111
Signed-off-by: Iman Aboheydary <iman@customgento.com>
1 parent 0ddc4dc commit 3660533

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Observer/HtmlContentFilterObserver.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66

77
use CustomGento\Cookiebot\Model\Config;
88
use CustomGento\Cookiebot\Model\ExternalVideoReplacer;
9+
use Magento\Framework\App\Response\Http;
910
use Magento\Framework\Event\Observer;
1011
use Magento\Framework\Event\ObserverInterface;
11-
use Magento\Framework\App\Response\Http;
12-
use Magento\Framework\App\RequestInterface;
1312
use Psr\Log\LoggerInterface;
1413

1514
class HtmlContentFilterObserver implements ObserverInterface
@@ -30,13 +29,13 @@ public function execute(Observer $observer): void
3029
if (!$this->config->isBlockVideosUntilConsentEnabled()) {
3130
return;
3231
}
33-
32+
3433
if (!$response instanceof Http) {
3534
return;
3635
}
3736

3837
$content = $response->getBody();
39-
38+
4039
if (empty($content) || !is_string($content)) {
4140
return;
4241
}

0 commit comments

Comments
 (0)