Completed
Branch master (32090c)
by Emily
05:38
created
Category
DependencyInjection/Configuration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,17 +24,17 @@
 block discarded – undo
24 24
 
25 25
         $rootNode
26 26
             ->beforeNormalization()
27
-                ->ifTrue(function ($v) {
27
+                ->ifTrue(function($v) {
28 28
                     return is_array($v) && count($v) > 0 && !array_key_exists('mailers', $v) && !array_key_exists('mailer', $v);
29 29
                 })
30
-                ->then(function (array $v) {
31
-                    $mailer = [];
30
+                ->then(function(array $v) {
31
+                    $mailer = [ ];
32 32
                     foreach ($v as $key => $value) {
33
-                        $mailer[$key] = $v[$key];
34
-                        unset($v[$key]);
33
+                        $mailer[ $key ] = $v[ $key ];
34
+                        unset($v[ $key ]);
35 35
                     }
36 36
 
37
-                    $v['mailers'] = ['default' => $mailer];
37
+                    $v[ 'mailers' ] = [ 'default' => $mailer ];
38 38
 
39 39
                     return $v;
40 40
                 })
Please login to merge, or discard this patch.
Tests/DependencyInjection/ConfigurationTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
     public function empty_configuration_is_empty()
25 25
     {
26 26
         $this->assertProcessedConfigurationEquals([
27
-            [],
27
+            [ ],
28 28
         ], [
29
-            'mailers' => [],
29
+            'mailers' => [ ],
30 30
         ]);
31 31
     }
32 32
 
Please login to merge, or discard this patch.