We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 6 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class EnsureMinimumStabilityStep extends Step |
||
| 10 | { |
||
| 11 | private ?string $currentStability = null; |
||
| 12 | |||
| 13 | public function title(): string |
||
| 14 | { |
||
| 15 | return 'composer.json minimum-stability'; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function run(): StepResult |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function canFix(StepResult $result): bool |
||
| 34 | { |
||
| 35 | return $result->status === StepStatus::Failed; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function fix(StepResult $result): StepResult |
||
| 49 | } |
||
| 50 | } |
||
| 51 |