@@ -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 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | public function getMatchers() |
56 | 56 | { |
57 | 57 | return [ |
58 | - 'haveFirstElement' => function ($subject, $element) { |
|
58 | + 'haveFirstElement' => function($subject, $element) { |
|
59 | 59 | if ($element !== reset($subject)) { |
60 | 60 | throw new \InvalidArgumentException(sprintf( |
61 | 61 | 'Expected "%s" as the first element, actual value was "%s".', |
@@ -65,7 +65,7 @@ |
||
65 | 65 | public function getMatchers() |
66 | 66 | { |
67 | 67 | return [ |
68 | - 'haveFunction' => function ($subject, $key) { |
|
68 | + 'haveFunction' => function($subject, $key) { |
|
69 | 69 | |
70 | 70 | if (!is_array($subject)) { |
71 | 71 | throw new FailureException('Subject of "hasFunction" matcher must be an array'); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | public function toArray() |
56 | 56 | { |
57 | 57 | return array_map( |
58 | - function ($value) { |
|
58 | + function($value) { |
|
59 | 59 | if ($value instanceof MetadataInterface) { |
60 | 60 | $value = $value->toArray(); |
61 | 61 | } |
@@ -106,7 +106,7 @@ |
||
106 | 106 | { |
107 | 107 | $properties = array_replace_recursive( |
108 | 108 | $options['defaults'], |
109 | - array_filter($metadata->toArray(), function ($item) { return null !== $item; }) |
|
109 | + array_filter($metadata->toArray(), function($item) { return null !== $item; }) |
|
110 | 110 | ); |
111 | 111 | |
112 | 112 | $renderedProperties = []; |