Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,4 @@
// keep '\\' prefix string on string '\Foo\Bar'
StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true,
])
->withCodeQualityLevel(54);
->withCodeQualityLevel(58);
7 changes: 2 additions & 5 deletions system/Debug/Toolbar/Collectors/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ protected function formatTimelineData(): array
*/
public function display(): array
{
$data = [];
$data['queries'] = array_map(static function (array $query): array {
return ['queries' => array_map(static function (array $query): array {
$isDuplicate = $query['duplicate'] === true;

$firstNonSystemLine = '';
Expand Down Expand Up @@ -195,9 +194,7 @@ public function display(): array
'trace-file' => $firstNonSystemLine,
'qid' => md5($query['query'] . Time::now()->format('0.u00 U')),
];
}, static::$queries);

return $data;
}, static::$queries)];
}

/**
Expand Down
Loading