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 — CrudButton-fixees ( a4c9f3...1a6e15 )
by Pedro
15:19
created

ButtonStackEnum::getValues()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Backpack\CRUD\app\Library\CrudPanel\Enums;
4
5
enum ButtonStackEnum : string
6
{
7
    public const TOP = 'top';
8
    public const LINE = 'line';
9
    public const BOTTOM = 'bottom';
10
11
    public static function isValid($stack): bool
12
    {
13
        return in_array($stack, [self::TOP, self::LINE, self::BOTTOM]);
0 ignored issues
show
Bug introduced by
The constant Backpack\CRUD\app\Librar...ms\ButtonStackEnum::TOP was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
Bug introduced by
The constant Backpack\CRUD\app\Librar...ButtonStackEnum::BOTTOM was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
Bug introduced by
The constant Backpack\CRUD\app\Librar...s\ButtonStackEnum::LINE was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
14
    }
15
16
    public static function getValues(): array
17
    {
18
        return [self::TOP, self::LINE, self::BOTTOM];
0 ignored issues
show
Bug introduced by
The constant Backpack\CRUD\app\Librar...ms\ButtonStackEnum::TOP was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
Bug introduced by
The constant Backpack\CRUD\app\Librar...ButtonStackEnum::BOTTOM was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
Bug introduced by
The constant Backpack\CRUD\app\Librar...s\ButtonStackEnum::LINE was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
19
    }
20
}