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

Test Setup Failed
Pull Request — main (#5725)
by Pedro
25:49 queued 10:59
created

UploaderRequest::rules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 3
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
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