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

StepResult   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 failure() 0 3 1
A skipped() 0 3 1
A success() 0 3 1
A __construct() 0 6 1
A warning() 0 3 1
1
<?php
2
3
namespace Backpack\CRUD\app\Console\Commands\Upgrade;
4
5
class StepResult
6
{
7
    public function __construct(
8
        public readonly StepStatus $status,
9
        public readonly string $summary,
10
        public readonly array $details = [],
11
        public readonly array $context = []
12
    ) {
13
    }
14
15
    public static function success(string $summary, array $details = [], array $context = []): self
16
    {
17
        return new self(StepStatus::Passed, $summary, $details, $context);
18
    }
19
20
    public static function warning(string $summary, array $details = [], array $context = []): self
21
    {
22
        return new self(StepStatus::Warning, $summary, $details, $context);
23
    }
24
25
    public static function failure(string $summary, array $details = [], array $context = []): self
26
    {
27
        return new self(StepStatus::Failed, $summary, $details, $context);
28
    }
29
30
    public static function skipped(string $summary, array $details = [], array $context = []): self
31
    {
32
        return new self(StepStatus::Skipped, $summary, $details, $context);
33
    }
34
}
35