@@ -98,7 +98,7 @@ |
||
98 | 98 | ->method('setDefinition') |
99 | 99 | ->withConsecutive( |
100 | 100 | [$service.'.internal', $definition], |
101 | - [$service, $this->callback(function ($definition) use ($service, $types) { |
|
101 | + [$service, $this->callback(function($definition) use ($service, $types) { |
|
102 | 102 | $result = $definition instanceof Definition |
103 | 103 | && $definition->getClass() === LazyRegistry::class |
104 | 104 | && count($definition->getArguments()) === 2 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | */ |
58 | 58 | private function findResource($resource, array &$criteria) |
59 | 59 | { |
60 | - array_walk_recursive($criteria, function (&$value) { |
|
60 | + array_walk_recursive($criteria, function(&$value) { |
|
61 | 61 | if ($value === 'yes') { |
62 | 62 | $value = true; |
63 | 63 | } elseif ($value === 'no') { |
@@ -246,7 +246,7 @@ |
||
246 | 246 | $data = array_merge($bag->get($form->getName(), []), $request->files->get($form->getName(), [])); |
247 | 247 | } |
248 | 248 | |
249 | - array_walk_recursive($data, function (&$value) { |
|
249 | + array_walk_recursive($data, function(&$value) { |
|
250 | 250 | if ($value === false) { |
251 | 251 | $value = 'false'; |
252 | 252 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $builder |
48 | 48 | ->add($builder->create('type', ChoiceType::class, [ |
49 | 49 | 'choices' => array_combine( |
50 | - array_map(function ($choice) use ($options) { |
|
50 | + array_map(function($choice) use ($options) { |
|
51 | 51 | return $options['label_prefix'].'.type.'.$choice; |
52 | 52 | }, $choices = ResourceType::getTypes($collection)), |
53 | 53 | $choices |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | $builder->add('translations', TranslationsFormsType::class, [ |
31 | 31 | 'form_type' => $options['resource']->getRelation('translation')->getForm(), |
32 | - 'empty_data' => function () { |
|
32 | + 'empty_data' => function() { |
|
33 | 33 | return new ArrayCollection(); |
34 | 34 | }, |
35 | 35 | ]); |