Skip to content

Commit 31b0456

Browse files
author
Mateusz Krzeszowiak
committed
Fix static tests
1 parent 693507f commit 31b0456

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Theme/Controller/Result/JsFooterPlugin.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ public function beforeSendResponse(Http $subject)
4242
$content = (string)$subject->getContent();
4343
$bodyEndTag = '</body';
4444
$isEndBodyTagFound = strpos($content, $bodyEndTag) !== false;
45-
$shouldMoveJsToBottom = $this->scopeConfig->isSetFlag(self::XML_PATH_DEV_MOVE_JS_TO_BOTTOM, ScopeInterface::SCOPE_STORE);
45+
$shouldMoveJsToBottom = $this->scopeConfig->isSetFlag(
46+
self::XML_PATH_DEV_MOVE_JS_TO_BOTTOM, ScopeInterface::SCOPE_STORE
47+
);
4648

4749
if ($isEndBodyTagFound && $shouldMoveJsToBottom) {
4850
if ($scripts = $this->extractScriptTags($content)) {
@@ -54,6 +56,8 @@ public function beforeSendResponse(Http $subject)
5456

5557
/**
5658
* Extracts and returns script tags found in given content.
59+
*
60+
* @param string $content
5761
*/
5862
public function extractScriptTags(&$content)
5963
{

0 commit comments

Comments
 (0)