Passed
Branch dev (c82d50)
by
unknown
02:51
created
src/plugins/onTick/authCheck.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -199,20 +199,20 @@
 block discarded – undo
199 199
 
200 200
                 //check if user authed based on standings
201 201
                 $standings = null;
202
-                if ((string)$role === 'blue' || 'neut' || 'red') {
202
+                if ((string) $role === 'blue' || 'neut' || 'red') {
203 203
                     $allianceContacts = getContacts($allianceID);
204 204
                     $corpContacts = getContacts($corporationID);
205
-                    if ((string)$role === 'blue' && ($allianceContacts['standings'] || $corpContacts['standings'] === 5 || 10 || '5' || '10')) {
205
+                    if ((string) $role === 'blue' && ($allianceContacts['standings'] || $corpContacts['standings'] === 5 || 10 || '5' || '10')) {
206 206
                         $standings = 1;
207 207
                     }
208
-                    if ((string)$role === 'red' && ($allianceContacts['standings'] || $corpContacts['standings'] === -5 || -10 || '-5' || '-10')) {
208
+                    if ((string) $role === 'red' && ($allianceContacts['standings'] || $corpContacts['standings'] === -5 || -10 || '-5' || '-10')) {
209 209
                         $standings = 1;
210 210
                     }
211
-                    if ((string)$role === 'neut' && ($allianceContacts['standings'] || $corpContacts['standings'] === 0 || '0' || (@(int)$allianceContacts['standings'] && @(int)$corpContacts['standings'] === null || ''))) {
211
+                    if ((string) $role === 'neut' && ($allianceContacts['standings'] || $corpContacts['standings'] === 0 || '0' || (@(int) $allianceContacts['standings'] && @(int) $corpContacts['standings'] === null || ''))) {
212 212
                         $standings = 1;
213 213
                     }
214 214
                 }
215
-                if (!in_array((int)$allianceID, $allianceArray) && !in_array((int)$corporationID, $corpArray) && null === $standings) {
215
+                if (!in_array((int) $allianceID, $allianceArray) && !in_array((int) $corporationID, $corpArray) && null === $standings) {
216 216
                     // Deactivate user in database
217 217
                     $sql = "UPDATE authUsers SET active='no' WHERE discordID='$discordID'";
218 218
                     $this->logger->addInfo("AuthCheck: {$eveName} account has been deactivated as they are no longer in a correct corp/alliance.");
Please login to merge, or discard this patch.