@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | private function getFieldsNormalizer() |
164 | 164 | { |
165 | - return function (Options $options, $fields) { |
|
165 | + return function(Options $options, $fields) { |
|
166 | 166 | $normalizedFields = []; |
167 | 167 | |
168 | 168 | foreach ($fields as $name => $field) { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | */ |
185 | 185 | private function getOrderNormalizer() |
186 | 186 | { |
187 | - return function (Options $options, $order) { |
|
187 | + return function(Options $options, $order) { |
|
188 | 188 | foreach ($order as $field => $sort) { |
189 | 189 | if (!is_string($sort) || !is_string($field) || !in_array(strtolower($sort), ['asc', 'desc'])) { |
190 | 190 | throw new Exception( |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | */ |
206 | 206 | private function getLoadStrategyNormalizer() |
207 | 207 | { |
208 | - return function (Options $options, $value) { |
|
208 | + return function(Options $options, $value) { |
|
209 | 209 | if (!$value) { |
210 | 210 | if ('create' == $this->actionName) { |
211 | 211 | $value = LAGAdminBundle::LOAD_STRATEGY_NONE; |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | */ |
229 | 229 | private function getMenuNormalizer() |
230 | 230 | { |
231 | - return function (Options $options, $menus) { |
|
231 | + return function(Options $options, $menus) { |
|
232 | 232 | // set default to an array |
233 | 233 | if (false === $menus) { |
234 | 234 | $menus = []; |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | */ |
247 | 247 | private function getCriteriaNormalizer() |
248 | 248 | { |
249 | - return function (Options $options, $value) { |
|
249 | + return function(Options $options, $value) { |
|
250 | 250 | if (!$value) { |
251 | 251 | $idActions = [ |
252 | 252 | 'edit', |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | */ |
296 | 296 | private function getFiltersNormalizer(): Closure |
297 | 297 | { |
298 | - return function (Options $options, $data) { |
|
298 | + return function(Options $options, $data) { |
|
299 | 299 | $normalizedData = []; |
300 | 300 | |
301 | 301 | foreach ($data as $name => $field) { |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | |
322 | 322 | private function getRouteDefaultNormalizer(): Closure |
323 | 323 | { |
324 | - return function (Options $options, $value) { |
|
324 | + return function(Options $options, $value) { |
|
325 | 325 | if (!is_array($value)) { |
326 | 326 | $value = []; |
327 | 327 | } |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | |
335 | 335 | private function getFormNormalizer(): Closure |
336 | 336 | { |
337 | - return function (Options $options, $value) { |
|
337 | + return function(Options $options, $value) { |
|
338 | 338 | if (null !== $value) { |
339 | 339 | return $value; |
340 | 340 | } |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | ->get('translation_pattern') |
364 | 364 | ; |
365 | 365 | |
366 | - return function (Options $options, $value) use ($translationPattern, $translation) { |
|
366 | + return function(Options $options, $value) use ($translationPattern, $translation) { |
|
367 | 367 | if (null === $value) { |
368 | 368 | //$value = 'lag.admin.'.$this->actionName; |
369 | 369 |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | { |
18 | 18 | public function testCreate() |
19 | 19 | { |
20 | - list($factory, $fieldFactory, , $storage) = $this->createFactory(); |
|
20 | + list($factory, $fieldFactory,, $storage) = $this->createFactory(); |
|
21 | 21 | |
22 | 22 | $request = new Request(); |
23 | 23 | |
@@ -62,9 +62,9 @@ discard block |
||
62 | 62 | |
63 | 63 | public function testCreateAjax() |
64 | 64 | { |
65 | - list($factory, $fieldFactory, , $storage) = $this->createFactory(); |
|
65 | + list($factory, $fieldFactory,, $storage) = $this->createFactory(); |
|
66 | 66 | |
67 | - $request = new Request([], [] ,[], [],[], [ |
|
67 | + $request = new Request([], [], [], [], [], [ |
|
68 | 68 | 'HTTP_X-Requested-With' => 'XMLHttpRequest', |
69 | 69 | ]); |
70 | 70 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | ]); |
115 | 115 | $entities = []; |
116 | 116 | |
117 | - list($factory, $fieldFactory, $router, ) = $this->createFactory(); |
|
117 | + list($factory, $fieldFactory, $router,) = $this->createFactory(); |
|
118 | 118 | |
119 | 119 | $adminConfiguration = $this->createMock(AdminConfiguration::class); |
120 | 120 | $adminConfiguration |