@@ -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 { |
@@ -347,7 +347,7 @@ |
||
| 347 | 347 | Pagerfanta $results, |
| 348 | 348 | $template, |
| 349 | 349 | $page |
| 350 | - ){ |
|
| 350 | + ) { |
|
| 351 | 351 | $results->setCurrentPage($page, true, true); |
| 352 | 352 | $results->setMaxPerPage($this->config->getPaginationMaxPerPage()); |
| 353 | 353 | |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | )) |
| 91 | 91 | ; |
| 92 | 92 | |
| 93 | - $resolver->setNormalizer('model_transformer', function (Options $options, $value) { |
|
| 93 | + $resolver->setNormalizer('model_transformer', function(Options $options, $value) { |
|
| 94 | 94 | if (!is_array($value)) { |
| 95 | 95 | $value = array( |
| 96 | 96 | 'class' => $value, |
@@ -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 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public function configureOptions(OptionsResolver $resolver) |
| 42 | 42 | { |
| 43 | - $choices = function (Options $options) { |
|
| 43 | + $choices = function(Options $options) { |
|
| 44 | 44 | if (null === $options['enabled']) { |
| 45 | 45 | $choices = $this->countryRepository->findAll(); |
| 46 | 46 | } else { |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | parent::configureOptions($resolver); |
| 29 | 29 | |
| 30 | - $choices = function (Options $options) { |
|
| 30 | + $choices = function(Options $options) { |
|
| 31 | 31 | if (null === $options['country']) { |
| 32 | 32 | $provinces = $this->provinceRepository->findAll(); |
| 33 | 33 | } else { |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public function configureOptions(OptionsResolver $resolver) |
| 43 | 43 | { |
| 44 | - $choices = function (Options $options) { |
|
| 44 | + $choices = function(Options $options) { |
|
| 45 | 45 | if (null === $options['country']) { |
| 46 | 46 | $choices = $this->provinceRepository->findAll(); |
| 47 | 47 | } else { |