Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Pull Request — main (#5715)
by Cristian
11:33
created

UploaderRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 5
c 1
b 1
f 0
dl 0
loc 23
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A rules() 0 5 1
A authorize() 0 4 1
1
<?php
2
3
namespace Backpack\CRUD\Tests\config\Http\Requests;
4
5
use Backpack\CRUD\app\Library\Validation\Rules\ValidUpload;
6
use Backpack\CRUD\app\Library\Validation\Rules\ValidUploadMultiple;
7
use Illuminate\Foundation\Http\FormRequest;
8
9
class UploaderRequest extends FormRequest
10
{
11
    /**
12
     * Determine if the user is authorized to make this request.
13
     *
14
     * @return bool
15
     */
16
    public function authorize()
17
    {
18
        // only allow updates if the user is logged in
19
        return true;
20
    }
21
22
    /**
23
     * Get the validation rules that apply to the request.
24
     *
25
     * @return array
26
     */
27
    public function rules()
28
    {
29
        return [
30
            'upload' => ValidUpload::field('required')->file(['mimes:jpg', 'max:100']),
31
            'upload_multiple' => ValidUploadMultiple::field(['required', 'min:2'])->file(['mimes:jpg', 'max:100']),
32
        ];
33
    }
34
}
35