Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Push — add-update-command ( 3eac9b )
by Pedro
15:29
created

Step   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 5
c 1
b 0
f 1
dl 0
loc 28
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A context() 0 3 1
A __construct() 0 2 1
A description() 0 3 1
A fix() 0 3 1
A canFix() 0 3 1
1
<?php
2
3
namespace Backpack\CRUD\app\Console\Commands\Upgrade;
4
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
21
    {
22
        return $this->context;
23
    }
24
25
    public function canFix(StepResult $result): bool
0 ignored issues
show
Unused Code introduced by
The parameter $result is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

25
    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.

Loading history...
26
    {
27
        return false;
28
    }
29
30
    public function fix(StepResult $result): StepResult
0 ignored issues
show
Unused Code introduced by
The parameter $result is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

30
    public function fix(/** @scrutinizer ignore-unused */ StepResult $result): StepResult

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
31
    {
32
        return StepResult::skipped('No automatic fix available.');
33
    }
34
}
35