@@ -302,10 +302,10 @@ |
||
| 302 | 302 | |
| 303 | 303 | protected function getFormType($name) |
| 304 | 304 | { |
| 305 | - if(method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix')) { |
|
| 306 | - return $this->formTypeMap[$name]; |
|
| 307 | - } |
|
| 305 | + if(method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix')) { |
|
| 306 | + return $this->formTypeMap[$name]; |
|
| 307 | + } |
|
| 308 | 308 | |
| 309 | - return $name; |
|
| 309 | + return $name; |
|
| 310 | 310 | } |
| 311 | 311 | } |
@@ -302,7 +302,7 @@ |
||
| 302 | 302 | |
| 303 | 303 | protected function getFormType($name) |
| 304 | 304 | { |
| 305 | - if(method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix')) { |
|
| 305 | + if (method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix')) { |
|
| 306 | 306 | return $this->formTypeMap[$name]; |
| 307 | 307 | } |
| 308 | 308 | |
@@ -300,6 +300,9 @@ |
||
| 300 | 300 | return (string) $this->extension->renderer->searchAndRenderBlock($view, 'label', $vars); |
| 301 | 301 | } |
| 302 | 302 | |
| 303 | + /** |
|
| 304 | + * @param string $name |
|
| 305 | + */ |
|
| 303 | 306 | protected function getFormType($name) |
| 304 | 307 | { |
| 305 | 308 | if(method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix')) { |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | { |
| 109 | 109 | $resolver->setDefaults( |
| 110 | 110 | array( |
| 111 | - 'layout' => function (Options $options) { |
|
| 111 | + 'layout' => function(Options $options) { |
|
| 112 | 112 | // BC |
| 113 | 113 | if (isset($options['horizontal'])) { |
| 114 | 114 | return $options['horizontal']; |
@@ -212,10 +212,10 @@ |
||
| 212 | 212 | ->end() |
| 213 | 213 | ->end() |
| 214 | 214 | ->beforeNormalization() |
| 215 | - ->ifTrue(function ($v) { |
|
| 215 | + ->ifTrue(function($v) { |
|
| 216 | 216 | return isset($v['horizontal']) && false === $v['horizontal']; |
| 217 | 217 | }) |
| 218 | - ->then(function ($v) { |
|
| 218 | + ->then(function($v) { |
|
| 219 | 219 | $v['layout'] = false; |
| 220 | 220 | unset($v['horizontal']); |
| 221 | 221 | |