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.

StoreRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 5
dl 0
loc 15
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A authorize() 0 3 1
A rules() 0 5 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace BristolSU\Module\UploadFile\Http\Requests\ParticipantApi\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
        ];
17
    }
18
19
20 8
    public function authorize()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function authorize()
Loading history...
21
    {
22 8
        return app(PermissionTester::class)->evaluate('uploadfile.file.store');
23
    }
24
25
}