Completed
Push — refonte ( c517e2...35a59a )
by Arnaud
02:26
created
src/Configuration/MenuConfiguration.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
                 'vertical',
40 40
                 null
41 41
             ])
42
-            ->setNormalizer('position', function (Options $options, $value) {
42
+            ->setNormalizer('position', function(Options $options, $value) {
43 43
                 if ('top' === $this->menuName && null === $value) {
44 44
                     $value = 'horizontal';
45 45
                 }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
                 return $value;
52 52
             })
53
-            ->setNormalizer('template', function (Options $options, $value) {
53
+            ->setNormalizer('template', function(Options $options, $value) {
54 54
                 // Define bootstrap navbar component template
55 55
                 if ('horizontal' === $options->offsetGet('position')) {
56 56
                     $value = '@LAGAdmin/Menu/menu.horizontal.html.twig';
@@ -59,12 +59,12 @@  discard block
 block discarded – undo
59 59
 
60 60
                 // Define bootstrap nav component template
61 61
                 if ('vertical' === $options->offsetGet('position')) {
62
-                    $value ='@LAGAdmin/Menu/menu.vertical.html.twig';
62
+                    $value = '@LAGAdmin/Menu/menu.vertical.html.twig';
63 63
                 }
64 64
 
65 65
                 return $value;
66 66
             })
67
-            ->setNormalizer('attr', function (Options $options, $value) {
67
+            ->setNormalizer('attr', function(Options $options, $value) {
68 68
                 $position = $options->offsetGet('position');
69 69
 
70 70
                 if (!key_exists('class', $value)) {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
                 return $value;
84 84
             })
85
-            ->setNormalizer('item_css_class', function (Options $options, $value) {
85
+            ->setNormalizer('item_css_class', function(Options $options, $value) {
86 86
                 $position = $options->offsetGet('position');
87 87
 
88 88
                 if (!$value) {
Please login to merge, or discard this patch.