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

Completed
Push — master ( 1c025f...27e528 )
by Ghitu
09:09 queued 06:30
created

LanguageRequest::authorize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Backpack\LangFileManager\app\Http\Requests;
4
5
use App\Http\Requests\Request;
6
use Backpack\CRUD\app\Http\Requests\CrudRequest as CrudRequest;
7
8
class LanguageRequest extends CrudRequest
9
{
10
    /**
11
     * Determine if the user is authorized to make this request.
12
     *
13
     * @return bool
14
     */
15
    public function authorize()
16
    {
17
        // only allow creates if the user is logged in
18
        return \Auth::check();
19
    }
20
21
    /**
22
     * Get the validation rules that apply to the request.
23
     *
24
     * @return array
0 ignored issues
show
Documentation introduced by
Consider making the return type a bit more specific; maybe use array<string,string>.

This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.

Loading history...
25
     */
26
    public function rules()
27
    {
28
        return [
29
            'name' => 'required|min:3|max:255',
30
            'abbr' => 'required|min:2|max:2',
31
        ];
32
    }
33
}
34