Passed
Pull Request — develop (#12)
by Jeroen van den
03:50 queued 47s
created
Form/Type/SiteType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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'
Please login to merge, or discard this patch.
Form/Type/IdentifiedSiteType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                             }
Please login to merge, or discard this patch.