Completed
Push — master ( 063bdc...995895 )
by Mahmoud
04:00
created

UpdateVisitorUserRequest::authorize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace App\Containers\User\UI\API\Requests;
4
5
use App\Port\Request\Abstracts\Request;
6
use Illuminate\Contracts\Auth\Access\Gate;
7
8
/**
9
 * Class UpdateVisitorUserRequest.
10
 *
11
 * @author Mahmoud Zalt <[email protected]>
12
 */
13
class UpdateVisitorUserRequest extends Request
14
{
15
16
    /**
17
     * Get the validation rules that apply to the request.
18
     *
19
     * @return array
20
     */
21
    public function rules()
22
    {
23
        return [
24
            'password' => 'min:6|max:30',
25
            'name'     => 'min:2|max:50',
26
            'email'    => 'email',
27
        ];
28
    }
29
30
31
    /**
32
     * Determine if the user is authorized to make this request.
33
     *
34
     * @param \Illuminate\Contracts\Auth\Access\Gate $gate
35
     *
36
     * @return bool
37
     */
38
    public function authorize(Gate $gate)
0 ignored issues
show
Unused Code introduced by
The parameter $gate is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
39
    {
40
        return true;
41
    }
42
}
43