@@ -51,7 +51,8 @@ |
||
| 51 | 51 | |
| 52 | 52 | if ($this->barrierTest($route[1], $currentUser, $route[0])) { |
| 53 | 53 | $this->redirect('/' . $referrer); |
| 54 | - } else { |
|
| 54 | + } |
|
| 55 | + else { |
|
| 55 | 56 | $this->redirect('/'); |
| 56 | 57 | } |
| 57 | 58 | } |
@@ -86,7 +86,8 @@ |
||
| 86 | 86 | return $result; |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - public static function getAll(PdoDatabase $database) { |
|
| 89 | + public static function getAll(PdoDatabase $database) |
|
| 90 | + { |
|
| 90 | 91 | $statement = $database->prepare("SELECT * FROM domain;"); |
| 91 | 92 | $statement->execute(); |
| 92 | 93 | |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | /** @var RequestQueue|false $targetQueue */ |
| 252 | 252 | $targetQueue = RequestQueue::getById($ban->getTargetQueue(), $this->database); |
| 253 | 253 | |
| 254 | - if ($targetQueue === false ) { |
|
| 254 | + if ($targetQueue === false) { |
|
| 255 | 255 | $comment = new Comment(); |
| 256 | 256 | $comment->setDatabase($this->database); |
| 257 | 257 | $comment->setRequest($request->getId()); |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | private function formOverride(Request $request) |
| 445 | 445 | { |
| 446 | 446 | $form = $request->getOriginFormObject(); |
| 447 | - if($form === null || $form->getOverrideQueue() === null) { |
|
| 447 | + if ($form === null || $form->getOverrideQueue() === null) { |
|
| 448 | 448 | return; |
| 449 | 449 | } |
| 450 | 450 | |
@@ -56,7 +56,8 @@ |
||
| 56 | 56 | $this->setTemplate('form-management/main.tpl'); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - protected function preview() { |
|
| 59 | + protected function preview() |
|
| 60 | + { |
|
| 60 | 61 | $previewContent = WebRequest::getSessionContext('preview'); |
| 61 | 62 | |
| 62 | 63 | $renderer = new MarkdownRenderingHelper(); |
@@ -116,13 +116,13 @@ |
||
| 116 | 116 | $countOfJobQueue = 0; |
| 117 | 117 | |
| 118 | 118 | // Count of flagged comments: |
| 119 | - if($this->barrierTest(RoleConfiguration::MAIN, $currentUser, PageListFlaggedComments::class)) { |
|
| 119 | + if ($this->barrierTest(RoleConfiguration::MAIN, $currentUser, PageListFlaggedComments::class)) { |
|
| 120 | 120 | // We want all flagged comments that haven't been acknowledged if we can visit the page. |
| 121 | 121 | $countOfFlagged = sizeof(Comment::getFlaggedComments($database)); |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | // Count of failed job queue changes: |
| 125 | - if($this->barrierTest(RoleConfiguration::MAIN, $currentUser, PageJobQueue::class)) { |
|
| 125 | + if ($this->barrierTest(RoleConfiguration::MAIN, $currentUser, PageJobQueue::class)) { |
|
| 126 | 126 | // We want all failed jobs that haven't been acknowledged if we can visit the page. |
| 127 | 127 | JobQueueSearchHelper::get($database) |
| 128 | 128 | ->statusIn([JobQueue::STATUS_FAILED]) |
@@ -109,7 +109,8 @@ |
||
| 109 | 109 | * |
| 110 | 110 | * @return void |
| 111 | 111 | */ |
| 112 | - public function setUpNavBarBadges(User $currentUser, PdoDatabase $database) { |
|
| 112 | + public function setUpNavBarBadges(User $currentUser, PdoDatabase $database) |
|
| 113 | + { |
|
| 113 | 114 | // Set up some variables. |
| 114 | 115 | // A size of 0 causes nothing to show up on the page (checked on navigation-menu.tpl) so leaving it 0 here is fine. |
| 115 | 116 | $countOfFlagged = 0; |
@@ -274,8 +274,8 @@ |
||
| 274 | 274 | |
| 275 | 275 | $isClosed = $request->getStatus() === RequestStatus::CLOSED || $request->getStatus() === RequestStatus::JOBQUEUE; |
| 276 | 276 | $this->assign('requestIsClosed', $isClosed); |
| 277 | - $isHospital = $request->getStatus() === RequestStatus::HOSPITAL; |
|
| 278 | - $this->assign('requestIsHospital', $isHospital); |
|
| 277 | + $isHospital = $request->getStatus() === RequestStatus::HOSPITAL; |
|
| 278 | + $this->assign('requestIsHospital', $isHospital); |
|
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | /** |