@@ -154,10 +154,10 @@ discard block |
||
| 154 | 154 | //Set corp/ally id arrays |
| 155 | 155 | foreach ($this->authGroups as $authGroup) { |
| 156 | 156 | if ($authGroup['corpID'] !== 0) { |
| 157 | - $corpArray[] = (int)$authGroup['corpID']; |
|
| 157 | + $corpArray[] = (int) $authGroup['corpID']; |
|
| 158 | 158 | } |
| 159 | 159 | if ($authGroup['allianceID'] !== 0) { |
| 160 | - $allianceArray[] = (int)$authGroup['allianceID']; |
|
| 160 | + $allianceArray[] = (int) $authGroup['allianceID']; |
|
| 161 | 161 | } |
| 162 | 162 | } |
| 163 | 163 | |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | //Auth things |
| 185 | 185 | if ($xml->result->rowset->row[0]) { |
| 186 | 186 | foreach ($xml->result->rowset->row as $character) { |
| 187 | - if (!in_array((int)$character->attributes()->allianceID, $allianceArray) && !in_array((int)$character->attributes()->corporationID, $corpArray)) { |
|
| 187 | + if (!in_array((int) $character->attributes()->allianceID, $allianceArray) && !in_array((int) $character->attributes()->corporationID, $corpArray)) { |
|
| 188 | 188 | // Deactivate user in database |
| 189 | 189 | $sql = "UPDATE authUsers SET active='no' WHERE discordID='$discordID'"; |
| 190 | 190 | $this->logger->addInfo("AuthCheck: {$eveName} account has been deactivated as they are no longer in a correct corp/alliance."); |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | $guild = $this->discord->guilds->get('id', $this->guildID); |
| 291 | 291 | |
| 292 | 292 | //Get name queue status |
| 293 | - $x = (int)getPermCache('nameQueueState'); |
|
| 293 | + $x = (int) getPermCache('nameQueueState'); |
|
| 294 | 294 | |
| 295 | 295 | //Establish connection to mysql |
| 296 | 296 | $conn = new mysqli($this->db, $this->dbUser, $this->dbPass, $this->dbName); |
@@ -349,10 +349,10 @@ discard block |
||
| 349 | 349 | foreach ($xml->result->rowset->row as $character) { |
| 350 | 350 | $corpInfo = getCorpInfo($character->attributes()->corporationID); |
| 351 | 351 | if (null !== $corpInfo) { |
| 352 | - $corpTicker = (string)$corpInfo['corpTicker']; |
|
| 352 | + $corpTicker = (string) $corpInfo['corpTicker']; |
|
| 353 | 353 | if ($this->nameEnforce === 'true') { |
| 354 | 354 | $nick = "[{$corpTicker}] {$eveName}"; |
| 355 | - } elseif ((string)$nickName === "[{$corpTicker}]") { |
|
| 355 | + } elseif ((string) $nickName === "[{$corpTicker}]") { |
|
| 356 | 356 | $nick = "[{$corpTicker}] {$userName}"; |
| 357 | 357 | } elseif (strpos($nickName, $corpTicker) == false) { |
| 358 | 358 | $nick = "[{$corpTicker}] {$nickName}"; |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | } |
| 376 | 376 | if ($this->nameEnforce === 'true') { |
| 377 | 377 | $nick = "[{$corpTicker}] {$eveName}"; |
| 378 | - } elseif ((string)$nickName === "[{$corpTicker}]") { |
|
| 378 | + } elseif ((string) $nickName === "[{$corpTicker}]") { |
|
| 379 | 379 | $nick = "[{$corpTicker}] {$userName}"; |
| 380 | 380 | } elseif (strpos($nickName, $corpTicker) == false) { |
| 381 | 381 | $nick = "[{$corpTicker}] {$nickName}"; |