ResetRequest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 29
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A rules() 0 6 1
A authorize() 0 4 1
A messages() 0 4 1
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