Completed
Push — master ( a8612d...130145 )
by Jan
04:35
created
src/Controller/UserController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Controller/RedirectController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.