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.

ActivityInstanceController::index()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 3
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 1
b 0
f 0
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace BristolSU\Module\UploadFile\Http\Controllers\AdminApi;
4
5
use BristolSU\Module\UploadFile\Http\Controllers\Controller;
6
use BristolSU\Support\Activity\Activity;
7
use BristolSU\Support\ActivityInstance\Contracts\ActivityInstanceRepository;
8
use BristolSU\Support\Module\Module;
9
10
class ActivityInstanceController extends Controller
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class ActivityInstanceController
Loading history...
11
{
12
13
    public function index(Activity $activity, Module $module, ActivityInstanceRepository $activityInstanceRepository)
0 ignored issues
show
Unused Code introduced by
The parameter $module 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 */ Module $module, ActivityInstanceRepository $activityInstanceRepository)

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
        return $activityInstanceRepository->allForActivity($activity->id);
16
    }
17
    
18
}