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
Pull Request — main (#5225)
by
unknown
26:17 queued 11:41
created

StyleEnum::color()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Backpack\CRUD\Tests\config\Models\Enums;
4
5
enum StyleEnum
6
{
7
    case DRAFT;
8
    case PUBLISHED;
9
10
    public function color(): string
11
    {
12
        return match ($this) {
13
            StyleEnum::DRAFT => 'red',
14
            StyleEnum::PUBLISHED => 'green',
15
        };
16
    }
17
}
18