Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and actions-user committed Jun 22, 2021
1 parent 71dd6e7 commit ace7342
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Ray.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ public function countQueries(callable $callable)

$executedQueryStatistics = collect($watcher->getExecutedQueries())

->pipe(function(Collection $queries) {
->pipe(function (Collection $queries) {
return [
'Count' => $queries->count(),
'Total time' => $queries->sum(function(QueryExecuted $query) {
'Total time' => $queries->sum(function (QueryExecuted $query) {
return $query->time;
})
}),
];
});

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/QueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function show_queries_can_be_colorized()
/** @test */
public function it_can_count_the_amount_of_executed_queries()
{
ray()->countQueries(function() {
ray()->countQueries(function () {
DB::table('users')->get('id');
DB::table('users')->get('id');
DB::table('users')->get('id');
Expand Down

0 comments on commit ace7342

Please sign in to comment.