Passed
Pull Request — master (#100)
by Bob
17:47
created
src/plugins/onTick/authCheck.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -154,10 +154,10 @@  discard block
 block discarded – undo
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
 
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
         $guild = $this->discord->guilds->get('id', $this->guildID);
293 293
 
294 294
         //Get name queue status
295
-        $x = (int)getPermCache('nameQueueState');
295
+        $x = (int) getPermCache('nameQueueState');
296 296
 
297 297
         //Establish connection to mysql
298 298
         $conn = new mysqli($this->db, $this->dbUser, $this->dbPass, $this->dbName);
@@ -351,10 +351,10 @@  discard block
 block discarded – undo
351 351
                         foreach ($xml->result->rowset->row as $character) {
352 352
                             $corpInfo = getCorpInfo($character->attributes()->corporationID);
353 353
                             if (null !== $corpInfo) {
354
-                                $corpTicker = (string)$corpInfo['corpTicker'];
354
+                                $corpTicker = (string) $corpInfo['corpTicker'];
355 355
                                 if ($this->nameEnforce === 'true') {
356 356
                                     $nick = "[{$corpTicker}] {$eveName}";
357
-                                } elseif ((string)$nickName === "[{$corpTicker}]") {
357
+                                } elseif ((string) $nickName === "[{$corpTicker}]") {
358 358
                                     $nick = "[{$corpTicker}] {$userName}";
359 359
                                 } elseif (strpos($nickName, $corpTicker) == false) {
360 360
                                     $nick = "[{$corpTicker}] {$nickName}";
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
                             }
378 378
                             if ($this->nameEnforce === 'true') {
379 379
                                 $nick = "[{$corpTicker}] {$eveName}";
380
-                            } elseif ((string)$nickName === "[{$corpTicker}]") {
380
+                            } elseif ((string) $nickName === "[{$corpTicker}]") {
381 381
                                 $nick = "[{$corpTicker}] {$userName}";
382 382
                             } elseif (strpos($nickName, $corpTicker) == false) {
383 383
                                 $nick = "[{$corpTicker}] {$nickName}";
Please login to merge, or discard this patch.