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.

Controller::authorize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
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;
4
5
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
6
use Illuminate\Foundation\Bus\DispatchesJobs;
7
use Illuminate\Foundation\Validation\ValidatesRequests;
8
9
class Controller
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class Controller
Loading history...
10
{
11
    use AuthorizesRequests {
12
        authorize as baseAuthorize;
13
    }
14
    
15
    use DispatchesJobs, ValidatesRequests;
16
17 99
    public function authorize($ability, $arguments = [])
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function authorize()
Loading history...
18
    {
19 99
        return $this->baseAuthorize(
20 99
            alias() . '.' . $ability,
21
            $arguments
22
        );
23
    }
24
}