File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/Theme/Controller/Result Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ public function beforeSendResponse(Http $subject)
42
42
$ content = (string )$ subject ->getContent ();
43
43
$ bodyEndTag = '</body ' ;
44
44
$ 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
+ );
46
48
47
49
if ($ isEndBodyTagFound && $ shouldMoveJsToBottom ) {
48
50
if ($ scripts = $ this ->extractScriptTags ($ content )) {
@@ -54,6 +56,8 @@ public function beforeSendResponse(Http $subject)
54
56
55
57
/**
56
58
* Extracts and returns script tags found in given content.
59
+ *
60
+ * @param string $content
57
61
*/
58
62
public function extractScriptTags (&$ content )
59
63
{
You can’t perform that action at this time.
0 commit comments