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::failure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 3
dl 0
loc 3
rs 10
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