Passed
Push — master ( c3ec55...6fe0c7 )
by Simon
04:07
created
includes/Fragments/NavigationMenuAccessControl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,13 +117,13 @@
 block discarded – undo
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])
Please login to merge, or discard this patch.
includes/Pages/PageDomainSwitch.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 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
 
Please login to merge, or discard this 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.