Skip to content

Commit 4531794

Browse files
author
Xavier Barbosa
committed
Fixed issue where long strings of text would break the queries table, since wordwrap does not cut words by default.
1 parent ccffedc commit 4531794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renderers/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function render(array $data)
2727
'connection',
2828
], $queries->map(function ($query, $index) {
2929
return [
30-
wordwrap(array_get($query, 'sql'), self::TEXT_MAX_WITH),
30+
wordwrap(array_get($query, 'sql'), self::TEXT_MAX_WITH, PHP_EOL, true).PHP_EOL,
3131
array_get($query, 'duration_str'),
3232
basename(array_get($query, 'stmt_id')),
3333
basename(array_get($query, 'connection')),

0 commit comments

Comments
 (0)