Skip to content

Commit

Permalink
style: break long line
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jul 16, 2022
1 parent f64e258 commit b9cdbdc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion system/Debug/Toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,14 @@ public function prepare(?RequestInterface $request = null, ?ResponseInterface $r
. PHP_EOL;

if (strpos($response->getBody(), '<head>') !== false) {
$response->setBody(preg_replace('/<head>/', '<head>' . $script, $response->getBody(), 1));
$response->setBody(
preg_replace(
'/<head>/',
'<head>' . $script,
$response->getBody(),
1
)
);

return;
}
Expand Down

0 comments on commit b9cdbdc

Please sign in to comment.