Passed
Pull Request — master (#281)
by
unknown
09:47 queued 05:51
created
includes/Pages/Statistics/StatsUsers.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,8 +130,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
includes/Pages/RequestAction/PageCreateRequest.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.