@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | ->setDefault('items', []) |
| 57 | 57 | ->setDefault('icon', null) |
| 58 | 58 | ->setDefault('link_css_class', 'nav-link') |
| 59 | - ->setNormalizer('admin', function (Options $options, $adminName) { |
|
| 59 | + ->setNormalizer('admin', function(Options $options, $adminName) { |
|
| 60 | 60 | // user has to defined either an admin name and an action name, or a route name with optional |
| 61 | 61 | // parameters, or an url |
| 62 | 62 | if (null === $adminName |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | return $adminName; |
| 72 | 72 | }) |
| 73 | 73 | // if an admin name is set, an action name can provided. This action will be the menu link |
| 74 | - ->setNormalizer('action', function (Options $options, $action) { |
|
| 74 | + ->setNormalizer('action', function(Options $options, $action) { |
|
| 75 | 75 | // if an action name is provided, an admin name should be defined too |
| 76 | 76 | if (null !== $action && null === $options->offsetGet('admin')) { |
| 77 | 77 | throw new InvalidOptionsException( |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | return $action; |
| 88 | 88 | }) |
| 89 | 89 | ->setAllowedTypes('parameters', 'array') |
| 90 | - ->setNormalizer('attr', function (Options $options, $attr) { |
|
| 90 | + ->setNormalizer('attr', function(Options $options, $attr) { |
|
| 91 | 91 | if (!is_array($attr)) { |
| 92 | 92 | $attr = []; |
| 93 | 93 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | return $attr; |
| 104 | 104 | }) |
| 105 | - ->setNormalizer('link_attr', function (Options $options, $value) { |
|
| 105 | + ->setNormalizer('link_attr', function(Options $options, $value) { |
|
| 106 | 106 | if (!is_array($value)) { |
| 107 | 107 | $value = []; |
| 108 | 108 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | return $value; |
| 115 | 115 | }) |
| 116 | - ->setNormalizer('items', function (Options $options, $items) { |
|
| 116 | + ->setNormalizer('items', function(Options $options, $items) { |
|
| 117 | 117 | if (!is_array($items)) { |
| 118 | 118 | $items = []; |
| 119 | 119 | } |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | |
| 131 | 131 | return $resolvedItems; |
| 132 | 132 | }) |
| 133 | - ->setNormalizer('text', function (Options $options, $text) { |
|
| 133 | + ->setNormalizer('text', function(Options $options, $text) { |
|
| 134 | 134 | if ($text) { |
| 135 | 135 | return $text; |
| 136 | 136 | } |