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 ( 94138f...ec7d81 )
by Toby
22:20
created

StoreRequest::authorize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
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\Requests\AdminApi\FileController;
4
5
use BristolSU\Support\Permissions\Contracts\PermissionTester;
6
use Illuminate\Foundation\Http\FormRequest;
7
8
class StoreRequest extends FormRequest
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class StoreRequest
Loading history...
9
{
10
11 7
    public function rules()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function rules()
Loading history...
12
    {
13
        return [
14 7
            'file' => 'array',
15 7
            'file.*' => 'mimes:'.implode(',', settings('allowed_extensions', [])),
16 7
            'activity_instance_id' => 'required'
17
        ];
18
    }
19
20
21 8
    public function authorize()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function authorize()
Loading history...
22
    {
23 8
        return app(PermissionTester::class)->evaluate('uploadfile.admin.file.store');
24
    }
25
26
}