@@ -55,12 +55,10 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | if ($this->barrierTest(RoleConfigurationBase::MAIN, $user, PageMain::class)) { |
| 57 | 57 | $this->redirect(''); |
| 58 | - } |
|
| 59 | - else { |
|
| 58 | + } else { |
|
| 60 | 59 | $this->redirect('preferences'); |
| 61 | 60 | } |
| 62 | - } |
|
| 63 | - else { |
|
| 61 | + } else { |
|
| 64 | 62 | $this->assignCSRFToken(); |
| 65 | 63 | $this->setTemplate('preferences/prefs.tpl'); |
| 66 | 64 | |
@@ -119,8 +117,7 @@ discard block |
||
| 119 | 117 | $globalDefinition = WebRequest::postBoolean($fieldName . 'Global'); |
| 120 | 118 | if ($globalDefinition) { |
| 121 | 119 | $preferencesManager->setGlobalPreference($preferenceName, $value); |
| 122 | - } |
|
| 123 | - else { |
|
| 120 | + } else { |
|
| 124 | 121 | $preferencesManager->setLocalPreference($preferenceName, $value); |
| 125 | 122 | } |
| 126 | 123 | } |
@@ -130,8 +130,7 @@ discard block |
||
| 130 | 130 | |
| 131 | 131 | if ($logCount === 0) { |
| 132 | 132 | $this->assign('accountlog', array()); |
| 133 | - } |
|
| 134 | - else { |
|
| 133 | + } else { |
|
| 135 | 134 | list($users, $logData) = LogHelper::prepareLogsForTemplate($logs, $database, $this->getSiteConfiguration(), $this->getSecurityManager()); |
| 136 | 135 | |
| 137 | 136 | $this->assign("accountlog", $logData); |
@@ -151,8 +150,7 @@ discard block |
||
| 151 | 150 | if ($user->getForceIdentified() === null) { |
| 152 | 151 | $idVerifier = new IdentificationVerifier($this->getHttpHelper(), $this->getSiteConfiguration(), $this->getDatabase()); |
| 153 | 152 | $this->assign('identificationStatus', $idVerifier->isUserIdentified($user->getOnWikiName()) ? 'detected' : 'missing'); |
| 154 | - } |
|
| 155 | - else { |
|
| 153 | + } else { |
|
| 156 | 154 | $this->assign('identificationStatus', $user->getForceIdentified() == 1 ? 'forced-on' : 'forced-off'); |
| 157 | 155 | } |
| 158 | 156 | |
@@ -58,8 +58,7 @@ |
||
| 58 | 58 | && $creationMode === 'bot' |
| 59 | 59 | ) { |
| 60 | 60 | throw new AccessDeniedException($secMgr, $this->getDomainAccessManager()); |
| 61 | - } |
|
| 62 | - elseif ($secMgr->allows('RequestCreation', PreferenceManager::CREATION_OAUTH, $user) !== ISecurityManager::ALLOWED |
|
| 61 | + } elseif ($secMgr->allows('RequestCreation', PreferenceManager::CREATION_OAUTH, $user) !== ISecurityManager::ALLOWED |
|
| 63 | 62 | && $creationMode === 'oauth' |
| 64 | 63 | ) { |
| 65 | 64 | throw new AccessDeniedException($secMgr, $this->getDomainAccessManager()); |