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 Cristian
40:57 queued 26:46
created

Page   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
eloc 2
c 2
b 1
f 0
dl 0
loc 15
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A button() 0 2 1
A field() 0 3 1
1
<?php
2
3
namespace Backpack\CRUD\app\Library\Components;
4
5
/**
6
 * This is a test class.
7
 */
8
class Page
9
{
10
    public static function button(string|array $name)
0 ignored issues
show
Unused Code introduced by
The parameter $name is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

10
    public static function button(/** @scrutinizer ignore-unused */ string|array $name)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
11
    {
12
    }
13
14
    /**
15
     * Undocumented function.
16
     *
17
     * @param  string|array  $input
18
     * @return Field
19
     */
20
    public static function field(string|array $input)
21
    {
22
        return new BaseField($input);
0 ignored issues
show
Bug Best Practice introduced by
The expression return new Backpack\CRUD...nents\BaseField($input) returns the type Backpack\CRUD\app\Library\Components\BaseField which is incompatible with the documented return type Backpack\CRUD\app\Library\Components\Field.
Loading history...
23
    }
24
}
25