for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php
namespace Backpack\CRUD\app\Console\Commands\Upgrade;
abstract class Step
{
public function __construct(protected UpgradeContext $context)
}
abstract public function title(): string;
public function description(): ?string
return null;
abstract public function run(): StepResult;
protected function context(): UpgradeContext
return $this->context;
public function canFix(StepResult $result): bool
$result
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function canFix(/** @scrutinizer ignore-unused */ StepResult $result): bool
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return false;
public function fix(StepResult $result): StepResult
public function fix(/** @scrutinizer ignore-unused */ StepResult $result): StepResult
return StepResult::skipped('No automatic fix available.');
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.