We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | abstract class Step |
||
| 6 | { |
||
| 7 | public function __construct(protected UpgradeContext $context) |
||
| 8 | { |
||
| 9 | } |
||
| 10 | |||
| 11 | abstract public function title(): string; |
||
| 12 | |||
| 13 | public function description(): ?string |
||
| 14 | { |
||
| 15 | return null; |
||
| 16 | } |
||
| 17 | |||
| 18 | abstract public function run(): StepResult; |
||
| 19 | |||
| 20 | protected function context(): UpgradeContext |
||
| 23 | } |
||
| 24 | |||
| 25 | public function canFix(StepResult $result): bool |
||
|
|
|||
| 26 | { |
||
| 27 | return false; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function fix(StepResult $result): StepResult |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.