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.

MemberController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 9
ccs 4
cts 4
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 6 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace BristolSU\Module\AssignRoles\Http\Controllers\ParticipantApi;
4
5
use BristolSU\Module\AssignRoles\Http\Controllers\Controller;
6
use BristolSU\Support\Activity\Activity;
7
use BristolSU\Support\Authentication\Contracts\Authentication;
8
use BristolSU\Support\ModuleInstance\Contracts\ModuleInstance;
9
10
class MemberController extends Controller
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class MemberController
Loading history...
11
{
12
13 2
    public function index(Activity $activity, ModuleInstance $moduleInstance, Authentication $authentication)
0 ignored issues
show
Unused Code introduced by
The parameter $moduleInstance 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

13
    public function index(Activity $activity, /** @scrutinizer ignore-unused */ ModuleInstance $moduleInstance, Authentication $authentication)

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...
Unused Code introduced by
The parameter $activity 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

13
    public function index(/** @scrutinizer ignore-unused */ Activity $activity, ModuleInstance $moduleInstance, Authentication $authentication)

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...
Coding Style introduced by
Missing doc comment for function index()
Loading history...
14
    {
15 2
        $this->authorize('see-members');
16
        
17 1
        $group = $authentication->getGroup();
18 1
        return $group->members();
19
    }
20
    
21
}