File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 66
77use CustomGento \Cookiebot \Model \Config ;
88use CustomGento \Cookiebot \Model \ExternalVideoReplacer ;
9+ use Magento \Framework \App \Response \Http ;
910use Magento \Framework \Event \Observer ;
1011use Magento \Framework \Event \ObserverInterface ;
11- use Magento \Framework \App \Response \Http ;
12- use Magento \Framework \App \RequestInterface ;
1312use Psr \Log \LoggerInterface ;
1413
1514class 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 }
You can’t perform that action at this time.
0 commit comments