@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | 'title' => null, |
| 37 | 37 | 'url' => '', |
| 38 | 38 | ]) |
| 39 | - ->setNormalizer('route', function (Options $options, $value) use ($applicationConfiguration) { |
|
| 39 | + ->setNormalizer('route', function(Options $options, $value) use ($applicationConfiguration) { |
|
| 40 | 40 | // A route, an url or an admin should be defined |
| 41 | 41 | if (!$value && !$options->offsetGet('url') && !$options->offsetGet('admin')) { |
| 42 | 42 | throw new InvalidOptionsException('Either an url or a route should be defined'); |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | return $value; |
| 50 | 50 | }) |
| 51 | - ->setNormalizer('admin', function (Options $options, $value) { |
|
| 51 | + ->setNormalizer('admin', function(Options $options, $value) { |
|
| 52 | 52 | // if a Admin is defined, an Action should be defined too |
| 53 | 53 | if ($value && !$options->offsetGet('action')) { |
| 54 | 54 | throw new InvalidOptionsException('An Action should be provided if an Admin is provided'); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | return $value; |
| 58 | 58 | }) |
| 59 | - ->setNormalizer('text', function (Options $options, $value) { |
|
| 59 | + ->setNormalizer('text', function(Options $options, $value) { |
|
| 60 | 60 | if ($value) { |
| 61 | 61 | return $value; |
| 62 | 62 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | 'translation' => true, |
| 26 | 26 | 'property_path' => null, |
| 27 | 27 | ]) |
| 28 | - ->addNormalizer('attr', function (Options $options, $value) { |
|
| 28 | + ->addNormalizer('attr', function(Options $options, $value) { |
|
| 29 | 29 | if (!empty($value['class'])) { |
| 30 | 30 | return $value; |
| 31 | 31 | } |