@@ -12,43 +12,45 @@ use Tracy;
1212 #tracy-debug .nette-DbConnectionPanel-explain td { white-space: pre }
1313</style>
1414
15- <h1 title="<?= htmlSpecialChars ($ connection ->getDsn (), ENT_QUOTES , 'UTF-8 ' ) ?> ">Queries: <?php
16- echo $ count , ($ totalTime ? sprintf (', time: %0.3f ms ' , $ totalTime * 1000 ) : '' ), ', ' , htmlSpecialChars ($ name , ENT_NOQUOTES , 'UTF-8 ' ) ?> </h1>
15+ <h1 title="<?= htmlspecialchars ($ connection ->getDsn (), ENT_QUOTES , 'UTF-8 ' ) ?> ">Queries: <?php
16+ echo $ count , ($ totalTime ? sprintf (', time: %0.3f ms ' , $ totalTime * 1000 ) : '' ), ', ' , htmlspecialchars ($ name , ENT_NOQUOTES , 'UTF-8 ' ) ?> </h1>
1717
1818<div class="tracy-inner">
1919 <table>
2020 <tr><th>Time ms</th><th>SQL Query</th><th>Rows</th></tr>
2121 <?php
2222 foreach ($ queries as $ query ):
23- list ( $ connection , $ sql , $ params , $ source , $ time , $ rows , $ error , $ explain) = $ query ;
23+ [ $ connection , $ sql , $ params , $ source , $ time , $ rows , $ error , $ explain] = $ query ;
2424 ?>
2525 <tr>
2626 <td>
2727 <?php if ($ error ): ?>
28- <span title="<?= htmlSpecialChars ($ error , ENT_IGNORE | ENT_QUOTES , 'UTF-8 ' ) ?> ">ERROR</span>
28+ <span title="<?= htmlspecialchars ($ error , ENT_IGNORE | ENT_QUOTES , 'UTF-8 ' ) ?> ">ERROR</span>
2929 <?php elseif ($ time !== null ): echo sprintf ('%0.3f ' , $ time * 1000 ); endif ?>
3030 <?php if ($ explain ): ?>
3131 <br /><a class="tracy-toggle tracy-collapsed" data-tracy-ref="^tr .nette-DbConnectionPanel-explain">explain</a>
3232 <?php endif ?>
33- </td>
34- <td class="nette-DbConnectionPanel-sql"><?= Helpers::dumpSql ($ sql , $ params , $ connection ) ?>
33+ </td>
34+ <td class="nette-DbConnectionPanel-sql"><?= Helpers::dumpSql ($ sql , $ params , $ connection ) ?>
3535 <?php if ($ explain ): ?>
3636 <table class="tracy-collapsed nette-DbConnectionPanel-explain">
3737 <tr>
3838 <?php foreach ($ explain [0 ] as $ col => $ foo ): ?>
39- <th><?= htmlSpecialChars ($ col , ENT_NOQUOTES , 'UTF-8 ' ) ?> </th>
39+ <th><?= htmlspecialchars ($ col , ENT_NOQUOTES , 'UTF-8 ' ) ?> </th>
4040 <?php endforeach ?>
4141 </tr>
4242 <?php foreach ($ explain as $ row ): ?>
4343 <tr>
4444 <?php foreach ($ row as $ col ): ?>
45- <td><?= htmlSpecialChars ($ col , ENT_NOQUOTES , 'UTF-8 ' ) ?> </td>
45+ <td><?= htmlspecialchars ($ col , ENT_NOQUOTES , 'UTF-8 ' ) ?> </td>
4646 <?php endforeach ?>
4747 </tr>
4848 <?php endforeach ?>
4949 </table>
5050 <?php endif ?>
51- <?php if ($ source ) echo substr_replace (Tracy \Helpers::editorLink ($ source [0 ], $ source [1 ]), ' class="nette-DbConnectionPanel-source" ' , 2 , 0 ); ?>
51+ <?php if ($ source ) {
52+ echo substr_replace (Tracy \Helpers::editorLink ($ source [0 ], $ source [1 ]), ' class="nette-DbConnectionPanel-source" ' , 2 , 0 );
53+ } ?>
5254 </td>
5355 <td><?= $ rows ?> </td>
5456 </tr>
0 commit comments