@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | public function getTests() |
87 | 87 | { |
88 | 88 | return [ |
89 | - new TwigTest('instanceof', function ($var, $instance) { |
|
89 | + new TwigTest('instanceof', function($var, $instance) { |
|
90 | 90 | return $var instanceof $instance; |
91 | 91 | } ) |
92 | 92 | ]; |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function loginPath(string $path) : string |
114 | 114 | { |
115 | - $parts = explode("/" ,$path); |
|
115 | + $parts = explode("/", $path); |
|
116 | 116 | //Remove the part with |
117 | 117 | unset($parts[1]); |
118 | 118 | return implode("/", $parts); |
@@ -52,12 +52,12 @@ |
||
52 | 52 | //Check if a user has set a preferred language setting: |
53 | 53 | $user = $this->getUser(); |
54 | 54 | if ($user instanceof User) { |
55 | - if(!empty($user->getLanguage())) { |
|
55 | + if (!empty($user->getLanguage())) { |
|
56 | 56 | $locale = $user->getLanguage(); |
57 | 57 | } |
58 | 58 | } |
59 | 59 | |
60 | - $new_url = str_replace($request->getPathInfo(), '/' . $locale . $request->getPathInfo(), $request->getUri()); |
|
60 | + $new_url = str_replace($request->getPathInfo(), '/'.$locale.$request->getPathInfo(), $request->getUri()); |
|
61 | 61 | |
62 | 62 | return $this->redirect($new_url); |
63 | 63 | } |