Total Complexity | 4 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class ResetPasswordForm extends Model |
||
13 | { |
||
14 | public $password; |
||
15 | |||
16 | private $_user; |
||
17 | |||
18 | protected $app; |
||
19 | |||
20 | /** |
||
21 | * __construct |
||
22 | * |
||
23 | * @param Application $app, string $token |
||
24 | **/ |
||
25 | public function __construct(Application $app, string $token) |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * rules |
||
32 | * |
||
33 | * @return array the validation rules. |
||
34 | **/ |
||
35 | public function rules() |
||
40 | ]; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * atributeLabels |
||
45 | * Translate Atribute Labels. |
||
46 | * |
||
47 | * @return array customized attribute labels. |
||
48 | **/ |
||
49 | public function attributeLabels() |
||
50 | { |
||
51 | return [ |
||
52 | 'password' => $this->app->t('basic', 'Password'), |
||
53 | ]; |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * resetPassword |
||
58 | * Resets password. |
||
59 | * |
||
60 | * @return bool if password was reset. |
||
61 | **/ |
||
62 | public function resetPassword() |
||
68 | } |
||
69 | } |
||
70 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.