Passed
Push — master ( 2191f6...abcfc0 )
by Wilmer
02:41
created

ResetPasswordForm::resetPassword()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace app\basic\forms;
4
5
use app\basic\models\UserModels;
6
use yii\base\Model;
7
8
/**
9
 * ResetPasswordForm is the model behind the reset password form Web Application Basic.
10
 **/
11
class ResetPasswordForm extends Model
12
{
13
	public $password;
14
15
    private $_User;
0 ignored issues
show
introduced by
The private property $_User is not used, and could be removed.
Loading history...
16
17
	/**
18
     * rules
19
     *
20
	 * @return array the validation rules.
21
	 **/
22
	public function rules()
23
	{
24
		return [
25
			['password', 'required'],
26
			['password', 'string', 'min' => 6],
27
		];
28
	}
29
}
30