Completed
Push — master ( 35e176...59ab04 )
by Andreas
22:35
created
src/midcom/datamanager/extension/type/subformType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.