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.

Issues (267)

AdminApi/ActivityInstanceController.php (4 issues)

1
<?php
2
0 ignored issues
show
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
Missing doc comment for class ActivityInstanceController
Loading history...
11
{
12
13
    public function index(Activity $activity, Module $module, ActivityInstanceRepository $activityInstanceRepository)
0 ignored issues
show
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...
Missing doc comment for function index()
Loading history...
14
    {
15
        return $activityInstanceRepository->allForActivity($activity->id);
16
    }
17
    
18
}