We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 9 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class FormConfigProcessor implements ConfigProcessorInterface |
||
| 14 | { |
||
| 15 | /** @var FormDescriber */ |
||
| 16 | private $describer; |
||
| 17 | |||
| 18 | /** @var callable */ |
||
| 19 | private $defaultResolver; |
||
|
|
|||
| 20 | |||
| 21 | public function __construct(FormDescriber $describer) |
||
| 24 | } |
||
| 25 | |||
| 26 | public static function transformArgs(array $fields, FormDescriber $describer) |
||
| 27 | { |
||
| 28 | dump($fields); |
||
| 29 | foreach ($fields as &$field) { |
||
| 30 | if (isset($field['form'])) { |
||
| 31 | //dump($field['argsForm']); |
||
| 32 | $args = $describer->describe($field['form']); |
||
| 33 | unset($field['form']); |
||
| 34 | $field['args'] = isset($field['args']) && \is_array($field['args']) ? \array_merge($args, $field['args']) : $args; |
||
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 38 | return $fields; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function process(LazyConfig $lazyConfig): LazyConfig |
||
| 57 | } |
||
| 58 | } |
||
| 59 |