@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $resolver->setAllowedTypes('includeLeaf', 'bool'); |
81 | 81 | $resolver->setAllowedTypes('all', 'bool'); |
82 | 82 | |
83 | - $resolver->setNormalizer('label', function (Options $options, $label) { |
|
83 | + $resolver->setNormalizer('label', function(Options $options, $label) { |
|
84 | 84 | if (null === $label || empty($label)) { |
85 | 85 | $isMultiple = $options['multiple']; |
86 | 86 | $translator = $options['translator']; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | return $label; |
92 | 92 | }); |
93 | - $resolver->setNormalizer('placeholder', function (Options $options, $placeholder) { |
|
93 | + $resolver->setNormalizer('placeholder', function(Options $options, $placeholder) { |
|
94 | 94 | if (!$options['required']) { |
95 | 95 | if (null === $placeholder || empty($placeholder)) { |
96 | 96 | $isMultiple = $options['multiple']; |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | return $placeholder; |
104 | 104 | }); |
105 | - $resolver->setNormalizer('choices', function (Options $options, $choices) { |
|
105 | + $resolver->setNormalizer('choices', function(Options $options, $choices) { |
|
106 | 106 | if (empty($choices)) { |
107 | 107 | $choices = $this->getCategoryChoices($options); |
108 | 108 | } |
@@ -104,7 +104,7 @@ |
||
104 | 104 | $api = $this->getMockBuilder(PermissionApiInterface::class) |
105 | 105 | ->getMock(); |
106 | 106 | $api->method('hasPermission')->will($this->returnCallback( |
107 | - function ($component = null, $instance = null, $level = ACCESS_NONE, $user = null) { |
|
107 | + function($component = null, $instance = null, $level = ACCESS_NONE, $user = null) { |
|
108 | 108 | list($regId, $catId) = explode('::', $instance); |
109 | 109 | |
110 | 110 | return $catId % 2 == 0; |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function load(array $configs, ContainerBuilder $container) |
25 | 25 | { |
26 | - $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__.'/../Resources/config'))); |
|
26 | + $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__ . '/../Resources/config'))); |
|
27 | 27 | |
28 | 28 | $loader->load('services.yml'); |
29 | 29 | $loader->load('twig.yml'); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function load(array $configs, ContainerBuilder $container) |
28 | 28 | { |
29 | - $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__.'/../Resources/config'))); |
|
29 | + $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__ . '/../Resources/config'))); |
|
30 | 30 | |
31 | 31 | $loader->load('services.yml'); |
32 | 32 | $loader->load('helpers.yml'); |
@@ -131,8 +131,8 @@ |
||
131 | 131 | { |
132 | 132 | $string = preg_replace_callback( |
133 | 133 | '/(.)@(.)/s', |
134 | - function ($m) { |
|
135 | - return "&#" . sprintf("%03d", ord($m[1])) . ";@&#" .sprintf("%03d", ord($m[2])) . ";"; |
|
134 | + function($m) { |
|
135 | + return "&#" . sprintf("%03d", ord($m[1])) . ";@&#" . sprintf("%03d", ord($m[2])) . ";"; |
|
136 | 136 | }, |
137 | 137 | $string |
138 | 138 | ); |
@@ -64,7 +64,7 @@ |
||
64 | 64 | { |
65 | 65 | $variableApi = $this->getMockBuilder(VariableApiInterface::class)->getMock(); |
66 | 66 | $variableApi->method('getSystemVar')->willReturnCallback( |
67 | - function ($string, $default) use ($htmlEntities, $outputFilter) { |
|
67 | + function($string, $default) use ($htmlEntities, $outputFilter) { |
|
68 | 68 | switch ($string) { |
69 | 69 | case 'outputfilter': |
70 | 70 | return $outputFilter; |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function load(array $configs, ContainerBuilder $container) |
28 | 28 | { |
29 | - $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__.'/../Resources/config'))); |
|
29 | + $loader = new YamlFileLoader($container, new FileLocator(realpath(__DIR__ . '/../Resources/config'))); |
|
30 | 30 | |
31 | 31 | $loader->load('services.yml'); |
32 | 32 | $loader->load('doctrine.yml'); |
@@ -104,9 +104,9 @@ |
||
104 | 104 | } |
105 | 105 | |
106 | 106 | // ensure proper variable types |
107 | - $value = (string) $value; |
|
108 | - $type = (string) $type; |
|
109 | - $weight = (int) $weight; |
|
107 | + $value = (string)$value; |
|
108 | + $type = (string)$type; |
|
109 | + $weight = (int)$weight; |
|
110 | 110 | |
111 | 111 | if ('stylesheet' == $type) { |
112 | 112 | $this->styleSheets->add([$value => $weight]); |
@@ -106,7 +106,7 @@ |
||
106 | 106 | 'attr' => [ |
107 | 107 | 'maxlength' => 255, |
108 | 108 | 'title' => $this->__('Enter the route entries per page.') . ' ' . $this->__('Only digits are allowed.') |
109 | - ],'scale' => 0 |
|
109 | + ], 'scale' => 0 |
|
110 | 110 | ]) |
111 | 111 | ; |
112 | 112 | } |