Completed
Push — master ( f65d8f...4f3de5 )
by Pavel
04:14 queued 01:54
created

UserUpdateRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 8 1
1
<?php
2
namespace App\Requests;
3
4
class UserUpdateRequest implements IRequest
5
{
6
    /**
7
     * @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...
8
     */
9
    public function rules()
10
    {
11
        return [
12
            'email'    => 'email',
13
            'role_id'  => 'integer',
14
            'password' => 'min:8',
15
        ];
16
    }
17
}