@@ -17,7 +17,7 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function load(array $config, ContainerBuilder $container) |
| 19 | 19 | { |
| 20 | - $xmlLoader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 20 | + $xmlLoader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 21 | 21 | $xmlLoader->load('services.xml'); |
| 22 | 22 | $xmlLoader->load('form_types.xml'); |
| 23 | 23 | $xmlLoader->load('validators.xml'); |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | return array_combine( |
| 48 | 48 | $this->getValues(), |
| 49 | 49 | array_map( |
| 50 | - function ($value) { |
|
| 50 | + function($value) { |
|
| 51 | 51 | return $this->translator->trans( |
| 52 | 52 | sprintf($this->transPattern, $value), |
| 53 | 53 | [], |
@@ -34,13 +34,13 @@ |
||
| 34 | 34 | ->setRequired('enum') |
| 35 | 35 | ->setAllowedValues( |
| 36 | 36 | 'enum', |
| 37 | - function ($name) { |
|
| 37 | + function($name) { |
|
| 38 | 38 | return $this->enumRegistry->has($name); |
| 39 | 39 | } |
| 40 | 40 | ) |
| 41 | 41 | ->setDefault( |
| 42 | 42 | 'choices', |
| 43 | - function (Options $options) { |
|
| 43 | + function(Options $options) { |
|
| 44 | 44 | return $this->enumRegistry->get($options['enum'])->getChoices(); |
| 45 | 45 | } |
| 46 | 46 | ) |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | public function getFunctions() |
| 30 | 30 | { |
| 31 | 31 | return [ |
| 32 | - new \Twig_SimpleFunction('enum_label', [ $this, 'getLabel' ]), |
|
| 32 | + new \Twig_SimpleFunction('enum_label', [$this, 'getLabel']), |
|
| 33 | 33 | ]; |
| 34 | 34 | } |
| 35 | 35 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | public function getFilters() |
| 40 | 40 | { |
| 41 | 41 | return [ |
| 42 | - new \Twig_SimpleFilter('enum_label', [ $this, 'getLabel' ]), |
|
| 42 | + new \Twig_SimpleFilter('enum_label', [$this, 'getLabel']), |
|
| 43 | 43 | ]; |
| 44 | 44 | } |
| 45 | 45 | |