Skip to content

Commit

Permalink
Merge branch 'main' of github.com:spatie/laravel-ray
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jun 22, 2021
2 parents c6a1e14 + ace7342 commit 4d8c864
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 4d8c864

Please sign in to comment.