Conditions | 1 |
Paths | 1 |
Total Lines | 28 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function __construct(ContainerInterface $di) |
||
20 | { |
||
21 | parent::__construct($di); |
||
22 | $this->form->create( |
||
23 | [ |
||
24 | "id" => __CLASS__, |
||
25 | "legend" => "Create user", |
||
26 | ], |
||
27 | [ |
||
28 | "acronym" => [ |
||
29 | "type" => "text", |
||
30 | ], |
||
31 | |||
32 | "password" => [ |
||
33 | "type" => "password", |
||
34 | ], |
||
35 | |||
36 | "password-again" => [ |
||
37 | "type" => "password", |
||
38 | "validation" => [ |
||
39 | "match" => "password" |
||
40 | ], |
||
41 | ], |
||
42 | |||
43 | "submit" => [ |
||
44 | "type" => "submit", |
||
45 | "value" => "Create user", |
||
46 | "callback" => [$this, "callbackSubmit"] |
||
47 | ], |
||
79 |