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 ( 5ea250...759401 )
by Cristian
01:31
created

UserStoreCrudRequest::rules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Backpack\PermissionManager\app\Http\Requests;
4
5
use Backpack\CRUD\app\Http\Requests\CrudRequest;
6
7
class UserStoreCrudRequest extends CrudRequest
8
{
9
    /**
10
     * Get the validation rules that apply to the request.
11
     *
12
     * @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...
13
     */
14
    public function rules()
15
    {
16
        return [
17
            'email'    => 'required|unique:'.config('laravel-permission.table_names.users', 'users').',email',
18
            'name'     => 'required',
19
            'password' => 'required|confirmed',
20
        ];
21
    }
22
}
23