@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | $resolver->setDefaults([ |
| 28 | 28 | 'choices' => $this->siteRepository->findAll(), |
| 29 | - 'choice_label' => function (SiteInterface $site = null) { |
|
| 29 | + 'choice_label' => function(SiteInterface $site = null) { |
|
| 30 | 30 | return (string) $site; |
| 31 | 31 | }, |
| 32 | 32 | 'choice_value' => 'id' |
@@ -31,9 +31,9 @@ |
||
| 31 | 31 | 'exclude_sites' => [] |
| 32 | 32 | ]); |
| 33 | 33 | |
| 34 | - $resolver->setNormalizer('choices', function (Options $options, $value) { |
|
| 34 | + $resolver->setNormalizer('choices', function(Options $options, $value) { |
|
| 35 | 35 | if ($options['exclude_sites']) { |
| 36 | - $value = array_filter($value, function (IdentifiedSiteInterface $site) use ($options): bool { |
|
| 36 | + $value = array_filter($value, function(IdentifiedSiteInterface $site) use ($options): bool { |
|
| 37 | 37 | return !in_array($site->getIdentifier(), $options['exclude_sites']); |
| 38 | 38 | }); |
| 39 | 39 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | ->arrayNode('resolver') |
| 35 | 35 | ->canBeEnabled() |
| 36 | 36 | ->beforeNormalization() |
| 37 | - ->ifTrue(function (array $config) { |
|
| 37 | + ->ifTrue(function(array $config) { |
|
| 38 | 38 | if (!$config['enabled']) { |
| 39 | 39 | return false; |
| 40 | 40 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | ->thenInvalid('A "host_mapping" is required for the hostname_identified resolver') |
| 44 | 44 | ->end() |
| 45 | 45 | ->beforeNormalization() |
| 46 | - ->ifTrue(function (array $config) { |
|
| 46 | + ->ifTrue(function(array $config) { |
|
| 47 | 47 | if (!$config['enabled']) { |
| 48 | 48 | return false; |
| 49 | 49 | } |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | ->thenInvalid('"identifiers" are required for the prefixed_path_identified resolver') |
| 54 | 54 | ->end() |
| 55 | 55 | ->beforeNormalization() |
| 56 | - ->ifTrue(function (array $config) { |
|
| 56 | + ->ifTrue(function(array $config) { |
|
| 57 | 57 | if (!$config['enabled']) { |
| 58 | 58 | return false; |
| 59 | 59 | } |