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::getAppendedAttributes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
ccs 0
cts 3
cp 0
crap 2
rs 10
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
}