| @@ -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 | |
| @@ -67,7 +67,7 @@ discard block | ||
| 67 | 67 | */ | 
| 68 | 68 | public function save() | 
| 69 | 69 |      { | 
| 70 | -        if($this->isNew()) { | |
| 70 | +        if ($this->isNew()) { | |
| 71 | 71 | // insert | 
| 72 | 72 | $statement = $this->dbObject->prepare(<<<SQL | 
| 73 | 73 | INSERT INTO `userpreference` ( | 
| @@ -88,7 +88,7 @@ discard block | ||
| 88 | 88 |              else { | 
| 89 | 89 | throw new Exception($statement->errorInfo()); | 
| 90 | 90 | } | 
| 91 | -        }else{ | |
| 91 | +        } else { | |
| 92 | 92 | // update | 
| 93 | 93 | $statement = $this->dbObject->prepare(<<<SQL | 
| 94 | 94 | UPDATE `userpreference` SET | 
| @@ -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 | /** | 
| @@ -324,7 +324,7 @@ | ||
| 324 | 324 |          { | 
| 325 | 325 | $value = WebRequest::httpHeader($header); | 
| 326 | 326 | |
| 327 | -            if($value === null){ | |
| 327 | +            if ($value === null) { | |
| 328 | 328 | continue; | 
| 329 | 329 | } | 
| 330 | 330 | |
| @@ -37,9 +37,9 @@ | ||
| 37 | 37 |          if (WebRequest::wasPosted()) { | 
| 38 | 38 | $this->validateCSRFToken(); | 
| 39 | 39 | |
| 40 | - $this->setPreference($preferencesManager,PreferenceManager::PREF_EMAIL_SIGNATURE, 'emailSignature'); | |
| 41 | -            $this->setPreferenceWithValue($preferencesManager,PreferenceManager::PREF_SKIP_JS_ABORT, 'skipJsAbort', WebRequest::postBoolean('skipJsAbort') ? 1 : 0); | |
| 42 | -            $this->setPreferenceWithValue($preferencesManager,PreferenceManager::PREF_QUEUE_HELP, 'showQueueHelp', WebRequest::postBoolean('showQueueHelp') ? 1 : 0); | |
| 40 | + $this->setPreference($preferencesManager, PreferenceManager::PREF_EMAIL_SIGNATURE, 'emailSignature'); | |
| 41 | +            $this->setPreferenceWithValue($preferencesManager, PreferenceManager::PREF_SKIP_JS_ABORT, 'skipJsAbort', WebRequest::postBoolean('skipJsAbort') ? 1 : 0); | |
| 42 | +            $this->setPreferenceWithValue($preferencesManager, PreferenceManager::PREF_QUEUE_HELP, 'showQueueHelp', WebRequest::postBoolean('showQueueHelp') ? 1 : 0); | |
| 43 | 43 | $this->setCreationMode($user, $preferencesManager); | 
| 44 | 44 | $this->setSkin($preferencesManager); | 
| 45 | 45 |              $preferencesManager->setGlobalPreference(PreferenceManager::PREF_DEFAULT_DOMAIN, WebRequest::postInt('defaultDomain')); | 
| @@ -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 | |