Passed
Pull Request — develop (#19)
by Bart
03:01
created
DependencyInjection/FHMultiSiteExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $configuration = new Configuration();
28 28
         $config = $this->processConfiguration($configuration, $configs);
29 29
 
30
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
30
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
31 31
         $loader->load('form.yml');
32 32
 
33 33
         $this->configureRepository($config['repository'], $container);
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                 ->arrayNode('resolver')
31 31
                     ->canBeEnabled()
32 32
                     ->beforeNormalization()
33
-                        ->ifTrue(static function (array $config) {
33
+                        ->ifTrue(static function(array $config) {
34 34
                             if (!$config['enabled']) {
35 35
                                 return false;
36 36
                             }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                         ->thenInvalid('A "host_mapping" is required for the hostname_identified resolver')
41 41
                     ->end()
42 42
                     ->beforeNormalization()
43
-                        ->ifTrue(static function (array $config) {
43
+                        ->ifTrue(static function(array $config) {
44 44
                             if (!$config['enabled']) {
45 45
                                 return false;
46 46
                             }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                         ->thenInvalid('"identifiers" are required for the prefixed_path_identified resolver')
51 51
                     ->end()
52 52
                     ->beforeNormalization()
53
-                        ->ifTrue(static function (array $config) {
53
+                        ->ifTrue(static function(array $config) {
54 54
                             if (!$config['enabled']) {
55 55
                                 return false;
56 56
                             }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                             ->defaultValue('hostname_identified')
66 66
                             ->beforeNormalization()
67 67
                                 ->ifNotInArray(self::ALLOWED_RESOLVERS)
68
-                                    ->thenInvalid('Resolver type must be one of: '.implode(', ', self::ALLOWED_RESOLVERS))
68
+                                    ->thenInvalid('Resolver type must be one of: ' . implode(', ', self::ALLOWED_RESOLVERS))
69 69
                             ->end()
70 70
                         ->end()
71 71
                         ->scalarNode('service_id')->end()
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
@@ -32,9 +32,9 @@
 block discarded – undo
32 32
             'exclude_sites' => [],
33 33
         ]);
34 34
 
35
-        $resolver->setNormalizer('choices', function (Options $options, $value) {
35
+        $resolver->setNormalizer('choices', function(Options $options, $value) {
36 36
             if ($options['exclude_sites']) {
37
-                $value = array_filter($value, function (IdentifiedSiteInterface $site) use ($options): bool {
37
+                $value = array_filter($value, function(IdentifiedSiteInterface $site) use ($options): bool {
38 38
                     return !\in_array($site->getIdentifier(), $options['exclude_sites'], true);
39 39
                 });
40 40
             }
Please login to merge, or discard this patch.
Form/Type/SiteType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $resolver->setDefaults([
28 28
             'choices' => $this->siteRepository->findAll(),
29
-            'choice_label' => static function (?SiteInterface $site = null) {
29
+            'choice_label' => static function(?SiteInterface $site = null) {
30 30
                 return (string) $site;
31 31
             },
32 32
             'choice_value' => 'id',
Please login to merge, or discard this patch.