for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BeyondCode\QueryDetector\Outputs;
use Illuminate\Support\Collection;
use Symfony\Component\HttpFoundation\Response;
class Clockwork implements Output
{
public function boot()
//
}
public function output(Collection $detectedQueries, Response $response)
clock()->warning("{$detectedQueries->count()} N+1 queries detected:", $detectedQueries->toArray());
clock
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
/** @scrutinizer ignore-call */