Passed
Push — master ( c3ec55...6fe0c7 )
by Simon
04:07
created
includes/Pages/PageDomainSwitch.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         try {
45 45
             $this->getDomainAccessManager()->switchDomain($currentUser, $newDomain);
46 46
         }
47
-        catch(DomainSwitchNotAllowedException $ex){
47
+        catch(DomainSwitchNotAllowedException $ex) {
48 48
             throw new AccessDeniedException($this->getSecurityManager(), $this->getDomainAccessManager());
49 49
         }
50 50
 
@@ -58,7 +58,8 @@  discard block
 block discarded – undo
58 58
 
59 59
         if ($this->barrierTest($route[1], $currentUser, $route[0])) {
60 60
             $this->redirect('/' . $referrer);
61
-        } else {
61
+        }
62
+        else {
62 63
             $this->redirect('/');
63 64
         }
64 65
     }
Please login to merge, or discard this patch.