Completed
Push — master ( 53c52b...b733d6 )
by Arnaud
15s queued 11s
created
src/Configuration/MenuItemConfiguration.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 //'allow_safe_labels' => true,
75 75
                 'extras' => ['safe_label' => true],
76 76
             ])
77
-            ->setNormalizer('route', function (Options $options, $route) {
77
+            ->setNormalizer('route', function(Options $options, $route) {
78 78
                 if ($options->offsetGet('uri')) {
79 79
                     return $route;
80 80
                 }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
                 return $route;
87 87
             })
88
-            ->setNormalizer('routeParameters', function (Options $options, $routeParameters) {
88
+            ->setNormalizer('routeParameters', function(Options $options, $routeParameters) {
89 89
                 if ($routeParameters === null) {
90 90
                     return [];
91 91
                 }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
                 return $routeParameters;
115 115
             })
116
-            ->setNormalizer('admin', function (Options $options, $adminName) {
116
+            ->setNormalizer('admin', function(Options $options, $adminName) {
117 117
                 // user has to defined either an admin name and an action name, or a route name with optional
118 118
                 // parameters, or an url
119 119
                 if (null === $adminName
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 return $adminName;
127 127
             })
128 128
             // if an admin name is set, an action name can provided. This action will be the menu link
129
-            ->setNormalizer('action', function (Options $options, $action) {
129
+            ->setNormalizer('action', function(Options $options, $action) {
130 130
                 // if an action name is provided, an admin name should be defined too
131 131
                 if ($action !== null && $options->offsetGet('admin') === null) {
132 132
                     throw new InvalidOptionsException('You should provide an admin name for this action '.$action);
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
                 return $action;
141 141
             })
142
-            ->setNormalizer('children', function (Options $options, $items) {
142
+            ->setNormalizer('children', function(Options $options, $items) {
143 143
                 if (!is_array($items)) {
144 144
                     $items = [];
145 145
                 }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
                 return $resolvedItems;
159 159
             })
160
-            ->setNormalizer('text', function (Options $options, $text) {
160
+            ->setNormalizer('text', function(Options $options, $text) {
161 161
                 if ($text) {
162 162
                     return $text;
163 163
                 }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 
179 179
                 return $text;
180 180
             })
181
-            ->setNormalizer('linkAttributes', function (Options $options, $linkAttributes) {
181
+            ->setNormalizer('linkAttributes', function(Options $options, $linkAttributes) {
182 182
                 if (!$linkAttributes) {
183 183
                     $linkAttributes = [];
184 184
                 }
Please login to merge, or discard this patch.