PasswordValidationRules   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 10
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A passwordRules() 0 3 1
1
<?php
2
3
namespace App\Actions\Fortify;
4
5
use Laravel\Fortify\Rules\Password;
6
7
trait PasswordValidationRules
8
{
9
    /**
10
     * Get the validation rules used to validate passwords.
11
     *
12
     * @return array
13
     */
14
    protected function passwordRules()
15
    {
16
        return ['required', 'string', new Password, 'confirmed'];
17
    }
18
}
19