Skip to content

Commit

Permalink
Fixed issue where long strings of text would break the queries table,…
Browse files Browse the repository at this point in the history
… since wordwrap does not cut words by default.
  • Loading branch information
Xavier Barbosa committed Sep 21, 2018
1 parent ccffedc commit 4531794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Renderers/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function render(array $data)
'connection',
], $queries->map(function ($query, $index) {
return [
wordwrap(array_get($query, 'sql'), self::TEXT_MAX_WITH),
wordwrap(array_get($query, 'sql'), self::TEXT_MAX_WITH, PHP_EOL, true).PHP_EOL,
array_get($query, 'duration_str'),
basename(array_get($query, 'stmt_id')),
basename(array_get($query, 'connection')),
Expand Down

0 comments on commit 4531794

Please sign in to comment.