| @@ -25,7 +25,7 @@ | ||
| 25 | 25 |      { | 
| 26 | 26 | $resolver->setDefaults([ | 
| 27 | 27 | 'choices' => $this->siteRepository->findAll(), | 
| 28 | -            'choice_label' => static function (SiteInterface $site = null) { | |
| 28 | +            'choice_label' => static function(SiteInterface $site = null) { | |
| 29 | 29 | return (string) $site; | 
| 30 | 30 | }, | 
| 31 | 31 | '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'], true); | 
| 38 | 38 | }); | 
| 39 | 39 | } | 
| @@ -28,7 +28,7 @@ discard block | ||
| 28 | 28 |                  ->arrayNode('resolver') | 
| 29 | 29 | ->canBeEnabled() | 
| 30 | 30 | ->beforeNormalization() | 
| 31 | -                        ->ifTrue(static function (array $config) { | |
| 31 | +                        ->ifTrue(static function(array $config) { | |
| 32 | 32 |                              if (!$config['enabled']) { | 
| 33 | 33 | return false; | 
| 34 | 34 | } | 
| @@ -37,7 +37,7 @@ discard block | ||
| 37 | 37 |                          ->thenInvalid('A "host_mapping" is required for the hostname_identified resolver') | 
| 38 | 38 | ->end() | 
| 39 | 39 | ->beforeNormalization() | 
| 40 | -                        ->ifTrue(static function (array $config) { | |
| 40 | +                        ->ifTrue(static function(array $config) { | |
| 41 | 41 |                              if (!$config['enabled']) { | 
| 42 | 42 | return false; | 
| 43 | 43 | } | 
| @@ -47,7 +47,7 @@ discard block | ||
| 47 | 47 |                          ->thenInvalid('"identifiers" are required for the prefixed_path_identified resolver') | 
| 48 | 48 | ->end() | 
| 49 | 49 | ->beforeNormalization() | 
| 50 | -                        ->ifTrue(static function (array $config) { | |
| 50 | +                        ->ifTrue(static function(array $config) { | |
| 51 | 51 |                              if (!$config['enabled']) { | 
| 52 | 52 | return false; | 
| 53 | 53 | } |