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

AddGroupInformationToRoles::formatItem()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 8
ccs 7
cts 7
cp 1
rs 10
cc 1
nc 1
nop 1
crap 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 AddGroupInformationToRoles extends Formatter
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class AddGroupInformationToRoles
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
        $group = $formattedItem->original()->group();
14 1
        $dataGroup = $group->data();
15 1
        $formattedItem->addRow('Group ID', $group->id());
16 1
        $formattedItem->addRow('Group Name', $dataGroup->name());
17 1
        $formattedItem->addRow('Group Email', $dataGroup->email());
18 1
        return  $formattedItem;
19
    }
20
21 1
    public function handles(): string
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function handles()
Loading history...
22
    {
23 1
        return static::ROLES;
24
    }
25
}