Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit 052fbf5

Browse files
committed
Inline variables
1 parent c68c47a commit 052fbf5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/LivewireReplacer.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ public function prepareResponseToCache(Response $responseToBeCached, Response $i
2121
return;
2222
}
2323

24-
$assetsHead = implode('', $assets);
25-
$assetsBody = '';
26-
2724
$responseToBeCached->setContent(
28-
SupportAutoInjectedAssets::injectAssets($content, $assetsHead, $assetsBody)
25+
SupportAutoInjectedAssets::injectAssets(
26+
html: $content,
27+
assetsHead: implode('', $assets),
28+
assetsBody: ''
29+
)
2930
);
3031
}
3132

0 commit comments

Comments
 (0)