| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | 2 | private function dispatchOnChildren(FormInterface $form, FormEvent $rootEvent) |
|
| 32 | { |
||
| 33 | 2 | foreach ($form as $child) { |
|
| 34 | |||
| 35 | 2 | if ($child->getConfig() instanceof ButtonBuilder) { |
|
| 36 | 1 | continue; |
|
| 37 | } |
||
| 38 | |||
| 39 | /** @var $child FormInterface */ |
||
| 40 | 2 | $eventDispatcher = $child->getConfig()->getEventDispatcher(); |
|
| 41 | 2 | $eventDispatcher->dispatch(new ValidFormEvent($rootEvent->getForm(), $rootEvent->getData(), $child), ValidFormEvent::NAME); |
|
| 42 | |||
| 43 | 2 | $this->dispatchOnChildren($child, $rootEvent); |
|
| 44 | } |
||
| 46 | } |