| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 12 | public static function execute(ContainerInterface $form, array $data) |
|
| 34 | { |
||
| 35 | 12 | $input = new Hidden(); |
|
| 36 | 12 | $input->setValue($data['id']) |
|
| 37 | 12 | ->setName('form-id'); |
|
| 38 | 12 | if ($form instanceof FormInterface) { |
|
| 39 | 12 | $form->setId($data['id']); |
|
| 40 | 12 | } |
|
| 41 | 12 | $form->add($input); |
|
| 42 | } |
||
| 43 | } |