Passed
Branch master (d69cc3)
by
unknown
02:45
created
src/plugins/onMessage/auth.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     function onMessage($msgData, $message)
92 92
     {
93
-        $channelID = (int)$msgData["message"]["channelID"];
93
+        $channelID = (int) $msgData["message"]["channelID"];
94 94
 
95 95
         if (in_array($channelID, $this->excludeChannel, true)) {
96 96
             return null;
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
             }
127 127
 
128 128
             while ($rows = $result->fetch_assoc()) {
129
-                $charID = (int)$rows['characterID'];
130
-                $corpID = (int)$rows['corporationID'];
131
-                $allianceID = (int)$rows['allianceID'];
129
+                $charID = (int) $rows['characterID'];
130
+                $corpID = (int) $rows['corporationID'];
131
+                $allianceID = (int) $rows['allianceID'];
132 132
                 $url = "https://api.eveonline.com/eve/CharacterName.xml.aspx?ids=$charID";
133 133
                 $xmlCharacter = makeApiRequest($url);
134 134
 
Please login to merge, or discard this patch.
src/plugins/onTick/authCheck.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -163,10 +163,10 @@  discard block
 block discarded – undo
163 163
         //Set corp/ally id arrays
164 164
         foreach ($this->authGroups as $authGroup) {
165 165
             if ($authGroup["corpID"] != 0) {
166
-                array_push($corpArray, (int)$authGroup["corpID"]);
166
+                array_push($corpArray, (int) $authGroup["corpID"]);
167 167
             }
168 168
             if ($authGroup["allianceID"] != 0) {
169
-                array_push($allianceArray, (int)$authGroup["allianceID"]);
169
+                array_push($allianceArray, (int) $authGroup["allianceID"]);
170 170
             }
171 171
         }
172 172
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
                 //Auth things
194 194
                 if ($xml->result->rowset->row[0]) {
195 195
                     foreach ($xml->result->rowset->row as $character) {
196
-                        if (!in_array((int)$character->attributes()->allianceID, $allianceArray) && !in_array((int)$character->attributes()->corporationID, $corpArray)) {
196
+                        if (!in_array((int) $character->attributes()->allianceID, $allianceArray) && !in_array((int) $character->attributes()->corporationID, $corpArray)) {
197 197
                             // Deactivate user in database
198 198
                             $sql = "UPDATE authUsers SET active='no' WHERE discordID='$discordID'";
199 199
                             $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.
src/plugins/admin/setGame.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             $roles = $member->roles;
88 88
             foreach ($roles as $role) {
89 89
                 if (in_array($role->name, $adminRoles, true)) {
90
-                    $newGame = (string)$data["messageString"];
90
+                    $newGame = (string) $data["messageString"];
91 91
                     $game = $this->discord->factory(Game::class, [
92 92
                         'name' => $newGame,
93 93
                     ]);
Please login to merge, or discard this patch.