GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

PositionSettings   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 17
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAppendedAttributes() 0 5 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace BristolSU\Module\AssignRoles\Fields;
4
5
use FormSchema\Schema\Field;
6
7
class PositionSettings extends Field
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class PositionSettings
Loading history...
8
{
9
10
    protected $type = 'assignRolesPositionSettings';
11
12
    protected $logic;
13
    
14
    protected $positions;
15
    
16
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
17
     * @inheritDoc
18
     */
0 ignored issues
show
Coding Style introduced by
Missing @return tag in function comment
Loading history...
19
    public function getAppendedAttributes(): array
20
    {
21
        return [
22
            'logic' => ($this->logic() ?? []),
0 ignored issues
show
Bug introduced by
The method logic() does not exist on BristolSU\Module\AssignR...Fields\PositionSettings. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

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

22
            'logic' => ($this->/** @scrutinizer ignore-call */ logic() ?? []),
Loading history...
23
            'positions' => ($this->positions() ?? [])
0 ignored issues
show
Bug introduced by
The method positions() does not exist on BristolSU\Module\AssignR...Fields\PositionSettings. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

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

23
            'positions' => ($this->/** @scrutinizer ignore-call */ positions() ?? [])
Loading history...
24
        ];
25
    }
26
}