for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JMGQ\AStar\Benchmark;
use Symfony\Component\Console\Helper\ProgressBar;
class SymfonyProgressBar implements ProgressBarInterface
{
public function __construct(private ProgressBar $progressBar)
$progressBar
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function __construct(/** @scrutinizer ignore-unused */ private ProgressBar $progressBar)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
}
public function start(int $numberOfSteps): void
$this->progressBar->start($numberOfSteps);
progressBar
JMGQ\AStar\Benchmark\SymfonyProgressBar
public function advance(): void
$this->progressBar->advance();
public function finish(): void
$this->progressBar->finish();
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.