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.
Passed
Push — master ( 18e39d...348781 )
by Toby
36:48 queued 23:00
created

AddPositionInformationToRoles   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A formatItem() 0 7 1
A handles() 0 3 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace BristolSU\ControlDB\Export\Formatter\Role;
4
5
use BristolSU\ControlDB\Export\FormattedItem;
6
use BristolSU\ControlDB\Export\Formatter\Formatter;
7
8
class AddPositionInformationToRoles extends Formatter
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class AddPositionInformationToRoles
Loading history...
9
{
10
11 1
    public function formatItem(FormattedItem $formattedItem): FormattedItem
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function formatItem()
Loading history...
12
    {
13 1
        $position = $formattedItem->original()->position();
14 1
        $dataPosition = $position->data();
15 1
        $formattedItem->addRow('Position ID', $position->id());
16 1
        $formattedItem->addRow('Position Name', $dataPosition->name());
17 1
        return  $formattedItem;
18
    }
19
20 1
    public function handles(): string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function handles()
Loading history...
21
    {
22 1
        return static::ROLES;
23
    }
24
}