for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fyuze\Kernel\Services;
use Fyuze\Debug\Collectors\Performance;
use Fyuze\Debug\Collectors\Response;
use Fyuze\Debug\Toolbar;
use Fyuze\Kernel\Service;
use Fyuze\Debug\Collectors\Database as DatabaseCollector;
class Debug extends Service
{
/**
* Once the has started
*/
public function bootstrap()
$this->registry->make('toolbar')
->addCollector(new Response($this->registry->make('response')), true);
}
* @return void
public function services()
$this->registry->add('toolbar', function ($app) {
$app
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
$this->registry->add('toolbar', function (/** @scrutinizer ignore-unused */ $app) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
$toolbar = new Toolbar();
$collectors = [];
$collectors[] = new Performance();
$collectors[] = new DatabaseCollector($this->registry->make('db'));
foreach ($collectors as $collector) {
$toolbar->addCollector($collector);
return $toolbar;
});
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.