We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10e7a73 commit 1a9e44dCopy full SHA for 1a9e44d
composer.json
@@ -23,7 +23,8 @@
23
"source": "https://github.com/cakephp/debug_kit"
24
},
25
"require": {
26
- "cakephp/cakephp": "3.0.*"
+ "cakephp/cakephp": "3.0.*",
27
+ "jdorn/sql-formatter": "~1.2"
28
29
"require-dev": {
30
"cakephp/cakephp-codesniffer": "dev-master",
src/Template/Element/sql_log_panel.ctp
@@ -63,7 +63,7 @@ $noOutput = true;
63
<tbody>
64
<?php foreach ($queries as $query): ?>
65
<tr>
66
- <td><?= h($query['query']) ?></td>
+ <td><pre><?= SqlFormatter::format($query['query'], false) ?></pre></td>
67
<td><?= h($query['rows']) ?></td>
68
<td><?= h($query['took']) ?></td>
69
</tr>
0 commit comments