@@ -117,13 +117,13 @@  | 
                                                    ||
| 117 | 117 | $countOfJobQueue = 0;  | 
                                                        
| 118 | 118 | |
| 119 | 119 | // Count of flagged comments:  | 
                                                        
| 120 | -        if($this->barrierTest(RoleConfigurationBase::MAIN, $currentUser, PageListFlaggedComments::class)) { | 
                                                        |
| 120 | +        if ($this->barrierTest(RoleConfigurationBase::MAIN, $currentUser, PageListFlaggedComments::class)) { | 
                                                        |
| 121 | 121 | // We want all flagged comments that haven't been acknowledged if we can visit the page.  | 
                                                        
| 122 | 122 | $countOfFlagged = sizeof(Comment::getFlaggedComments($database, 1)); // FIXME: domains  | 
                                                        
| 123 | 123 | }  | 
                                                        
| 124 | 124 | |
| 125 | 125 | // Count of failed job queue changes:  | 
                                                        
| 126 | -        if($this->barrierTest(RoleConfigurationBase::MAIN, $currentUser, PageJobQueue::class)) { | 
                                                        |
| 126 | +        if ($this->barrierTest(RoleConfigurationBase::MAIN, $currentUser, PageJobQueue::class)) { | 
                                                        |
| 127 | 127 | // We want all failed jobs that haven't been acknowledged if we can visit the page.  | 
                                                        
| 128 | 128 | JobQueueSearchHelper::get($database, 1) // FIXME: domains  | 
                                                        
| 129 | 129 | ->statusIn([JobQueue::STATUS_FAILED])  | 
                                                        
@@ -44,7 +44,7 @@  | 
                                                    ||
| 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 | |
@@ -44,7 +44,7 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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 | }  |