@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | 'max_count' => 0 |
| 42 | 42 | ] |
| 43 | 43 | ]); |
| 44 | - $resolver->setNormalizer('constraints', function (Options $options, $value) { |
|
| 44 | + $resolver->setNormalizer('constraints', function(Options $options, $value) { |
|
| 45 | 45 | $validation = []; |
| 46 | 46 | if ($options['type_config']['max_count'] > 0) { |
| 47 | 47 | $validation['max'] = $options['type_config']['max_count']; |
@@ -54,13 +54,13 @@ discard block |
||
| 54 | 54 | } |
| 55 | 55 | return $validation; |
| 56 | 56 | }); |
| 57 | - $resolver->setNormalizer('entry_options', function (Options $options, $value) { |
|
| 57 | + $resolver->setNormalizer('entry_options', function(Options $options, $value) { |
|
| 58 | 58 | return array_replace([ |
| 59 | 59 | 'required' => false, //@todo no idea why this is necessary |
| 60 | 60 | 'widget_config' => $options['widget_config'] |
| 61 | 61 | ], (array) $value); |
| 62 | 62 | }); |
| 63 | - $resolver->setNormalizer('widget_config', function (Options $options, $value) { |
|
| 63 | + $resolver->setNormalizer('widget_config', function(Options $options, $value) { |
|
| 64 | 64 | if (!array_key_exists('sortable', $value)) { |
| 65 | 65 | $value['sortable'] = false; |
| 66 | 66 | } |