@@ -202,8 +202,8 @@ |
||
202 | 202 | ->arrayNode('form') |
203 | 203 | ->addDefaultsIfNotSet() |
204 | 204 | ->children() |
205 | - ->scalarNode('default')->defaultValue(ShippingCategoryType::class)->cannotBeEmpty()->end() |
|
206 | - ->scalarNode('choice')->defaultValue(ResourceChoiceType::class)->cannotBeEmpty()->end() |
|
205 | + ->scalarNode('default')->defaultValue(ShippingCategoryType::class)->cannotBeEmpty()->end() |
|
206 | + ->scalarNode('choice')->defaultValue(ResourceChoiceType::class)->cannotBeEmpty()->end() |
|
207 | 207 | ->end() |
208 | 208 | ->end() |
209 | 209 | ->end() |
@@ -64,7 +64,7 @@ |
||
64 | 64 | public function configureOptions(OptionsResolver $resolver) |
65 | 65 | { |
66 | 66 | $repository = $this->taxonRepository; |
67 | - $choiceList = function (Options $options) use ($repository) { |
|
67 | + $choiceList = function(Options $options) use ($repository) { |
|
68 | 68 | $taxons = $repository->getNonRootTaxons(); |
69 | 69 | |
70 | 70 | if (null !== $options['taxonomy']) { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | ->booleanNode('guest_order') |
61 | 61 | ->beforeNormalization() |
62 | 62 | ->ifString() |
63 | - ->then(function ($v) { return (bool) $v; }) |
|
63 | + ->then(function($v) { return (bool) $v; }) |
|
64 | 64 | ->end() |
65 | 65 | ->defaultFalse() |
66 | 66 | ->end() |
@@ -44,7 +44,7 @@ |
||
44 | 44 | $resolver |
45 | 45 | ->setDefaults(array( |
46 | 46 | 'data_class' => $this->dataClass, |
47 | - 'validation_groups' => function (FormInterface $form) { |
|
47 | + 'validation_groups' => function(FormInterface $form) { |
|
48 | 48 | $data = $form->getData(); |
49 | 49 | if ($data && !$data->getId()) { |
50 | 50 | $this->validationGroups[] = 'sylius_user_create'; |
@@ -54,7 +54,7 @@ |
||
54 | 54 | */ |
55 | 55 | public function configureOptions(OptionsResolver $resolver) |
56 | 56 | { |
57 | - $choiceList = function (Options $options) { |
|
57 | + $choiceList = function(Options $options) { |
|
58 | 58 | if (null === $options['enabled']) { |
59 | 59 | $choices = $this->localeRepository->findAll(); |
60 | 60 | } else { |
@@ -281,7 +281,7 @@ |
||
281 | 281 | return $this->adjustments; |
282 | 282 | } |
283 | 283 | |
284 | - return $this->adjustments->filter(function (AdjustmentInterface $adjustment) use ($type) { |
|
284 | + return $this->adjustments->filter(function(AdjustmentInterface $adjustment) use ($type) { |
|
285 | 285 | return $type === $adjustment->getType(); |
286 | 286 | }); |
287 | 287 | } |
@@ -65,7 +65,7 @@ |
||
65 | 65 | public function getMatchers() |
66 | 66 | { |
67 | 67 | return array( |
68 | - 'haveLength' => function ($subject, $key) { |
|
68 | + 'haveLength' => function($subject, $key) { |
|
69 | 69 | return $key === strlen($subject); |
70 | 70 | }, |
71 | 71 | ); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | parent::configureOptions($resolver); |
28 | 28 | |
29 | 29 | $resolver->setDefaults(array( |
30 | - 'query_builder' => function (EntityRepository $repository) { |
|
30 | + 'query_builder' => function(EntityRepository $repository) { |
|
31 | 31 | return $repository->createQueryBuilder('o')->orderBy('o.left', 'asc'); |
32 | 32 | }, |
33 | 33 | )); |
@@ -54,7 +54,7 @@ |
||
54 | 54 | */ |
55 | 55 | public function configureOptions(OptionsResolver $resolver) |
56 | 56 | { |
57 | - $choiceList = function (Options $options) { |
|
57 | + $choiceList = function(Options $options) { |
|
58 | 58 | if (null === $options['enabled']) { |
59 | 59 | $choices = $this->localeRepository->findAll(); |
60 | 60 | } else { |