@@ -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()); |