@@ -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( |
@@ -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( |
@@ -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 | ; |
@@ -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 | } |
@@ -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 { |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | ); |
| 63 | 63 | |
| 64 | 64 | if (null != $currentArchetype->getId()) { |
| 65 | - $parentOptions['query_builder'] = function (RepositoryInterface $repository) use ($currentArchetype) { |
|
| 65 | + $parentOptions['query_builder'] = function(RepositoryInterface $repository) use ($currentArchetype) { |
|
| 66 | 66 | return $repository |
| 67 | 67 | ->createQueryBuilder('o') |
| 68 | 68 | ->where('o.id != :id') |
@@ -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 { |
@@ -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 { |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | */ |
| 337 | 337 | public function getVariants() |
| 338 | 338 | { |
| 339 | - return $this->variants->filter(function (BaseVariantInterface $variant) { |
|
| 339 | + return $this->variants->filter(function(BaseVariantInterface $variant) { |
|
| 340 | 340 | return !$variant->isDeleted() && !$variant->isMaster(); |
| 341 | 341 | }); |
| 342 | 342 | } |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | */ |
| 347 | 347 | public function getAvailableVariants() |
| 348 | 348 | { |
| 349 | - return $this->variants->filter(function (BaseVariantInterface $variant) { |
|
| 349 | + return $this->variants->filter(function(BaseVariantInterface $variant) { |
|
| 350 | 350 | return !$variant->isDeleted() && !$variant->isMaster() && $variant->isAvailable(); |
| 351 | 351 | }); |
| 352 | 352 | } |