Completed
Push — master ( ae2a4f...0ae9a6 )
by Marcel
12s queued 12s
created

Clockwork   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A output() 0 4 1
1
<?php
2
3
namespace BeyondCode\QueryDetector\Outputs;
4
5
use Illuminate\Support\Collection;
6
use Symfony\Component\HttpFoundation\Response;
7
8
class Clockwork implements Output
0 ignored issues
show
Bug introduced by
There is one abstract method boot in this class; you could implement it, or declare this class as abstract.
Loading history...
9
{
10
    public function output(Collection $detectedQueries, Response $response)
11
    {
12
        clock()->warning("{$detectedQueries->count()} N+1 queries detected:", $detectedQueries->toArray());
13
    }
14
}
15