ProfileChangePasswordRequest::rules()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 2
dl 0
loc 4
ccs 0
cts 1
cp 0
rs 10
c 1
b 1
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Gameap\Http\Requests;
4
5
class ProfileChangePasswordRequest extends Request
6
{
7
    /**
8
     * Rules
9
     *
10
     * @return array
11
     */
12
    public function rules()
13
    {
14
        return [
15
            'password' => 'sometimes|string|min:6|confirmed',
16
        ];
17
    }
18
}
19