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 (#4854)
by Pedro
30:01 queued 14:59
created

Button   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 35
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getAttributeValidationRules() 0 5 1
A getAttributeDefaults() 0 5 1
A content() 0 5 1
A stack() 0 5 1
A __construct() 0 3 1
1
<?php
2
3
namespace Backpack\CRUD\app\Library\Components\Buttons;
4
5
use Backpack\CRUD\app\Library\Components\AttributeCollection;
0 ignored issues
show
Bug introduced by
The type Backpack\CRUD\app\Librar...nts\AttributeCollection was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use Backpack\CRUD\app\Library\Components\Attributes\Fields\StackAttribute;
0 ignored issues
show
Bug introduced by
The type Backpack\CRUD\app\Librar...s\Fields\StackAttribute was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use Backpack\CRUD\app\Library\Components\Component;
0 ignored issues
show
Bug introduced by
The type Backpack\CRUD\app\Library\Components\Component was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
9
class Button extends Component
10
{
11
    public function __construct(AttributeCollection $attributes)
12
    {
13
        parent::__construct($attributes);
14
    }
15
16
    public static function getAttributeDefaults(): array
17
    {
18
        return [
19
            'stack'   => 'top',
20
            'content' => 'default',
21
        ];
22
    }
23
24
    public static function getAttributeValidationRules(): array
25
    {
26
        return [
27
            'stack'   => StackAttribute::class,
28
            'content' => ['required', 'string'],
29
        ];
30
    }
31
32
    public function stack(string $stack)
33
    {
34
        $this->setAttribute('stack', $stack);
35
36
        return $this;
37
    }
38
39
    public function content(string $content)
40
    {
41
        $this->setAttribute('content', $content);
42
43
        return $this;
44
    }
45
}
46