@@ -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 { |
@@ -31,13 +31,13 @@ |
||
31 | 31 | { |
32 | 32 | parent::configureOptions($resolver); |
33 | 33 | |
34 | - $queryBuilder = function (Options $options) { |
|
34 | + $queryBuilder = function(Options $options) { |
|
35 | 35 | $repositoryOptions = array( |
36 | 36 | 'disabled' => $options['disabled'], |
37 | 37 | 'channel' => $options['channel'], |
38 | 38 | ); |
39 | 39 | |
40 | - return function (PaymentMethodRepositoryInterface $repository) use ($repositoryOptions) { |
|
40 | + return function(PaymentMethodRepositoryInterface $repository) use ($repositoryOptions) { |
|
41 | 41 | return $repository->getQueryBuidlerForChoiceType($repositoryOptions); |
42 | 42 | }; |
43 | 43 | }; |
@@ -45,7 +45,7 @@ |
||
45 | 45 | 'label' => 'sylius.form.action.customer_group', |
46 | 46 | 'property' => 'name', |
47 | 47 | 'class' => $this->groupRepository->getClassName(), |
48 | - 'query_builder' => function () { |
|
48 | + 'query_builder' => function() { |
|
49 | 49 | return $this->groupRepository->getFormQueryBuilder(); |
50 | 50 | }, |
51 | 51 | 'constraints' => array( |
@@ -48,7 +48,7 @@ |
||
48 | 48 | { |
49 | 49 | $builder->addEventListener( |
50 | 50 | FormEvents::PRE_SET_DATA, |
51 | - function (FormEvent $event) { |
|
51 | + function(FormEvent $event) { |
|
52 | 52 | // Adding dynamically created code field |
53 | 53 | $nameOptions = array( |
54 | 54 | 'label' => 'sylius.form.locale.name', |
@@ -45,7 +45,7 @@ |
||
45 | 45 | 'label' => 'sylius.form.action.customer_group', |
46 | 46 | 'property' => 'name', |
47 | 47 | 'class' => $this->groupRepository->getClassName(), |
48 | - 'query_builder' => function () { |
|
48 | + 'query_builder' => function() { |
|
49 | 49 | return $this->groupRepository->getFormQueryBuilder(); |
50 | 50 | }, |
51 | 51 | 'constraints' => array( |
@@ -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 { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | ->setDefaults(array( |
62 | 62 | 'class' => null, |
63 | 63 | )) |
64 | - ->setNormalizer('class', function () { |
|
64 | + ->setNormalizer('class', function() { |
|
65 | 65 | return $this->className; |
66 | 66 | }) |
67 | 67 | ; |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | */ |
238 | 238 | public function getItemUnitsByVariant(ProductVariantInterface $variant) |
239 | 239 | { |
240 | - return $this->getItemUnits()->filter(function (OrderItemUnitInterface $itemUnit) use ($variant) { |
|
240 | + return $this->getItemUnits()->filter(function(OrderItemUnitInterface $itemUnit) use ($variant) { |
|
241 | 241 | return $variant === $itemUnit->getStockable(); |
242 | 242 | }); |
243 | 243 | } |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | return false; |
302 | 302 | } |
303 | 303 | |
304 | - return $this->payments->filter(function (BasePaymentInterface $payment) use ($state) { |
|
304 | + return $this->payments->filter(function(BasePaymentInterface $payment) use ($state) { |
|
305 | 305 | return $payment->getState() === $state; |
306 | 306 | })->last(); |
307 | 307 | } |
@@ -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 | } |