Completed
Push — master ( 0dd203...0bfcec )
by Jan
05:34
created
src/Twig/AppExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Controller/RedirectController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.