@@ -97,11 +97,11 @@ discard block |
||
97 | 97 | $resolver |
98 | 98 | ->setDefault('route', '') |
99 | 99 | ->setAllowedTypes('route', 'string') |
100 | - ->setNormalizer('route', function (Options $options, $value) { |
|
100 | + ->setNormalizer('route', function(Options $options, $value) { |
|
101 | 101 | if (!$value) { |
102 | 102 | // if no route was provided, it should be linked to an Admin |
103 | 103 | if (!$this->admin) { |
104 | - throw new InvalidOptionsException('No route was provided for action : ' . $this->actionName); |
|
104 | + throw new InvalidOptionsException('No route was provided for action : '.$this->actionName); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | // generate default route from admin |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | ->addAllowedValues('load_strategy', AdminInterface::LOAD_STRATEGY_UNIQUE) |
131 | 131 | ->addAllowedValues('load_strategy', AdminInterface::LOAD_STRATEGY_MULTIPLE) |
132 | 132 | ->addAllowedValues('load_strategy', null) |
133 | - ->setNormalizer('load_strategy', function (Options $options, $value) { |
|
133 | + ->setNormalizer('load_strategy', function(Options $options, $value) { |
|
134 | 134 | |
135 | 135 | if (!$value) { |
136 | 136 | if ($this->actionName == 'create') { |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | // criteria used to find entity in the data provider |
156 | 156 | $resolver |
157 | 157 | ->setDefault('criteria', []) |
158 | - ->setNormalizer('criteria', function (Options $options, $value) { |
|
158 | + ->setNormalizer('criteria', function(Options $options, $value) { |
|
159 | 159 | |
160 | 160 | if (!$value) { |
161 | 161 | $idActions = [ |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | // menus |
181 | 181 | $resolver |
182 | 182 | ->setDefault('menus', []) |
183 | - ->setNormalizer('menus', function (Options $options, $menus) { |
|
183 | + ->setNormalizer('menus', function(Options $options, $menus) { |
|
184 | 184 | // set default to an array |
185 | 185 | if ($menus === false) { |
186 | 186 | $menus = []; |
@@ -110,7 +110,7 @@ |
||
110 | 110 | $admin->remove(); |
111 | 111 | } |
112 | 112 | } else { |
113 | - throw new NotFoundHttpException('Invalid batch parameters : ' . $form->getErrors(true, false)); |
|
113 | + throw new NotFoundHttpException('Invalid batch parameters : '.$form->getErrors(true, false)); |
|
114 | 114 | } |
115 | 115 | // redirect to list view |
116 | 116 | return $this->redirectToRoute($admin->generateRouteName('list')); |