UserValidator
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 1
dl 0
loc 14
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: michaelschmidt
5
 * Date: 4/2/16
6
 * Time: 4:25 PM
7
 */
8
9
use Zizaco\Confide\UserValidator as ConfideUserValidator;
10
use Zizaco\Confide\UserValidatorInterface;
11
12
class UserValidator extends ConfideUserValidator implements UserValidatorInterface
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
13
{
14
15
    public $rules = [
16
        'create' => [
17
            'email'    => 'required|email',
18
            'password' => 'required|min:8',
19
        ],
20
        'update' => [
21
            'email'    => 'required|email',
22
            'password' => 'required|min:8',
23
        ]
24
    ];
25
}