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