Completed
Push — master ( 416cb1...222de5 )
by Anton
03:44
created

Password   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 17
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
1
<?php
2
3
namespace Modules\Profile\Form {
4
5
	use Utils\Form;
6
7
	class Password extends Form {
8
9
		# Constructor
10
11
		public function __construct() {
12
13
			parent::__construct('edit');
14
15
			# Add fields
16
17
			$this->addText('password', '', FORM_FIELD_PASSWORD, CONFIG_USER_PASSWORD_MAX_LENGTH, ['required' => true]);
18
19
			$this->addText('password_new', '', FORM_FIELD_PASSWORD, CONFIG_USER_PASSWORD_MAX_LENGTH, ['required' => true]);
20
21
			$this->addText('password_retype', '', FORM_FIELD_PASSWORD, CONFIG_USER_PASSWORD_MAX_LENGTH, ['required' => true]);
22
		}
23
	}
24
}
25