ResetRequest::authorize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php namespace Modules\User\Http\Requests;
2
3
use Illuminate\Foundation\Http\FormRequest;
4
5
class ResetRequest extends FormRequest
6
{
7
    /**
8
     * Get the validation rules that apply to the request.
9
     *
10
     * @return array
11
     */
12
    public function rules()
13
    {
14
        return [
15
            'email' => 'required|email',
16
        ];
17
    }
18
19
    /**
20
     * Determine if the user is authorized to make this request.
21
     *
22
     * @return bool
23
     */
24
    public function authorize()
25
    {
26
        return true;
27
    }
28
29
    public function messages()
30
    {
31
        return [];
32
    }
33
}
34