Skip to content

Commit 71c7625

Browse files
committed
refactor: apply code quality level 58 for Rector
1 parent 8e8bfbc commit 71c7625

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,4 @@
202202
// keep '\\' prefix string on string '\Foo\Bar'
203203
StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true,
204204
])
205-
->withCodeQualityLevel(54);
205+
->withCodeQualityLevel(58);

system/Debug/Toolbar/Collectors/Database.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ protected function formatTimelineData(): array
147147
*/
148148
public function display(): array
149149
{
150-
$data = [];
151-
$data['queries'] = array_map(static function (array $query): array {
150+
return ['queries' => array_map(static function (array $query): array {
152151
$isDuplicate = $query['duplicate'] === true;
153152

154153
$firstNonSystemLine = '';
@@ -195,9 +194,7 @@ public function display(): array
195194
'trace-file' => $firstNonSystemLine,
196195
'qid' => md5($query['query'] . Time::now()->format('0.u00 U')),
197196
];
198-
}, static::$queries);
199-
200-
return $data;
197+
}, static::$queries)];
201198
}
202199

203200
/**

0 commit comments

Comments
 (0)