@@ -112,7 +112,7 @@ |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | |
| 115 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) { |
|
| 115 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options) { |
|
| 116 | 116 | $builder = $event->getForm(); |
| 117 | 117 | /** @var User $data */ |
| 118 | 118 | $data = $event->getData(); |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | { |
| 130 | 130 | $fieldsString = ''; |
| 131 | 131 | foreach ($fields as $key => $value) { |
| 132 | - $fieldsString .= $key.'='.$value.'&'; |
|
| 132 | + $fieldsString .= $key . '=' . $value . '&'; |
|
| 133 | 133 | } |
| 134 | 134 | $fieldsString = rtrim($fieldsString, '&'); |
| 135 | 135 | |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | */ |
| 149 | 149 | public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) |
| 150 | 150 | { |
| 151 | - $targetPath = $request->getSession()->get('_security.'.$providerKey.'.target_path'); |
|
| 151 | + $targetPath = $request->getSession()->get('_security.' . $providerKey . '.target_path'); |
|
| 152 | 152 | if (!$targetPath) { |
| 153 | 153 | $targetPath = $this->router->generate('frontpage'); |
| 154 | 154 | } |