UpdateRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 12
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Xetaravel\Http\Requests\Password;
6
7
use Illuminate\Foundation\Http\FormRequest;
8
use Illuminate\Validation\Rules\Password;
9
10
class UpdateRequest extends FormRequest
11
{
12
    /**
13
     * Get the validation rules that apply to the request.
14
     *
15
     * @return array
16
     */
17
    public function rules(): array
18
    {
19
        return [
20
            'current_password' => 'current_password',
21
            'password' => ['required', 'confirmed', Password::defaults()],
22
        ];
23
    }
24
}
25