Skip to content

Commit 9b199af

Browse files
committed
style(JavascriptRenderer, QueryAnalyzer): Format code for readability
- Adjusted multiline assignment to improve readability in JavascriptRenderer. - Reformatted comment hints in QueryAnalyzer for better clarity. - Ensured consistent code style across changes.
1 parent 46f1c87 commit 9b199af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/JavascriptRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ public function renderHead(): string
4545
);
4646
$base64Logo = base64_encode_file(__DIR__.'/../art/logo.svg');
4747

48-
$html =
48+
$html
4949
/** @lang HTML */
50-
<<<HTML
50+
= <<<HTML
5151
<link rel="stylesheet" type="text/css" property="stylesheet" href="$cssRoute">
5252
<style>
5353
div.phpdebugbar-header, a.phpdebugbar-restore-btn {

src/Support/QueryAnalyzer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ public static function performQueryAnalysis(string $sql, ?float $version = null,
146146
}
147147

148148
if ($version < 5.5 && 'mysql' === $driver && preg_match('/\sIN\s*\(\s*SELECT/i', $sql)) {
149-
$hints[] = '<code>IN()</code> and <code>NOT IN()</code> subqueries are poorly optimized in that MySQL version : '.$version.
150-
'. MySQL executes the subquery as a dependent subquery for each row in the outer query';
149+
$hints[] = '<code>IN()</code> and <code>NOT IN()</code> subqueries are poorly optimized in that MySQL version : '.$version
150+
.'. MySQL executes the subquery as a dependent subquery for each row in the outer query';
151151
}
152152

153153
return $hints;

0 commit comments

Comments
 (0)