Passed
Branch master (86c6d0)
by
unknown
02:41
created
src/plugins/onTick/authCheck.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -182,10 +182,10 @@  discard block
 block discarded – undo
182 182
         //Set corp/ally id arrays
183 183
         foreach ($this->authGroups as $authGroup) {
184 184
             if ($authGroup["corpID"] != 0) {
185
-                array_push($corpArray, (int)$authGroup["corpID"]);
185
+                array_push($corpArray, (int) $authGroup["corpID"]);
186 186
             }
187 187
             if ($authGroup["allianceID"] != 0) {
188
-                array_push($allianceArray, (int)$authGroup["allianceID"]);
188
+                array_push($allianceArray, (int) $authGroup["allianceID"]);
189 189
             }
190 190
         }
191 191
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                 //Auth things
213 213
                 if ($xml->result->rowset->row[0]) {
214 214
                     foreach ($xml->result->rowset->row as $character) {
215
-                        if (!in_array((int)$character->attributes()->allianceID, $allianceArray) && !in_array((int)$character->attributes()->corporationID, $corpArray)) {
215
+                        if (!in_array((int) $character->attributes()->allianceID, $allianceArray) && !in_array((int) $character->attributes()->corporationID, $corpArray)) {
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.");
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
         $guild = $this->discord->guilds->get('id', $this->guildID);
321 321
 
322 322
         //Get name queue status
323
-        $x = (int)getPermCache("nameQueueState");
323
+        $x = (int) getPermCache("nameQueueState");
324 324
 
325 325
         //Establish connection to mysql
326 326
         $conn = new mysqli($this->db, $this->dbUser, $this->dbPass, $this->dbName);
Please login to merge, or discard this patch.