Failed Conditions
Push — smarty5 ( 853ee4...d2daf7 )
by Simon
05:17
created
includes/Pages/UserAuth/PagePreferences.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,12 +55,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
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.