@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | //Show permissions to user |
| 143 | - $builder = $this->createFormBuilder()->add('permissions',PermissionsType::class, [ |
|
| 143 | + $builder = $this->createFormBuilder()->add('permissions', PermissionsType::class, [ |
|
| 144 | 144 | 'mapped' => false, |
| 145 | 145 | 'disabled' => true, |
| 146 | 146 | 'inherit' => true, |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | */ |
| 165 | 165 | $user = $this->getUser(); |
| 166 | 166 | |
| 167 | - if(!$user instanceof User) { |
|
| 167 | + if (!$user instanceof User) { |
|
| 168 | 168 | return new \RuntimeException("This controller only works only for Part-DB User objects!"); |
| 169 | 169 | } |
| 170 | 170 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | //$new_url = str_replace($request->getPathInfo(), '/' . $locale . $request->getPathInfo(), $request->getUri()); |
| 71 | - $new_url = $request->getUriForPath('/' . $locale . $request->getPathInfo()); |
|
| 71 | + $new_url = $request->getUriForPath('/'.$locale.$request->getPathInfo()); |
|
| 72 | 72 | return $this->redirect($new_url); |
| 73 | 73 | } |
| 74 | 74 | } |
| 75 | 75 | \ No newline at end of file |