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 — v6 (#4971)
by Pedro
30:02 queued 15:18
created

StyleEnum   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A color() 0 5 1
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