Test Setup Failed
Push — master ( 31dfdc...3c949c )
by Bob
03:29
created
src/plugins/onTick/authCheck.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $allyID = $this->config["plugins"]["auth"]["allianceID"];
112 112
         $corpID = $this->config["plugins"]["auth"]["corpID"];
113 113
         $exempt = $this->config["plugins"]["auth"]["exempt"];
114
-        if(is_null($exempt)){
114
+        if (is_null($exempt)) {
115 115
             $exempt = "0";
116 116
         }
117 117
         $toDiscordChannel = $this->config["plugins"]["auth"]["alertChannel"];
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
         //Remove members who have roles but never authed
124 124
         $guild = $discord->guilds->get('id', $id);
125
-        foreach($guild->members as $member) {
125
+        foreach ($guild->members as $member) {
126 126
             $notifier = null;
127 127
             $id = $member->id;
128 128
             $username = $member->username;
@@ -131,10 +131,10 @@  discard block
 block discarded – undo
131 131
             $sql = "SELECT * FROM authUsers WHERE discordID='$id' AND active='yes'";
132 132
 
133 133
             $result = $conn->query($sql);
134
-            if($result->num_rows == 0) {
134
+            if ($result->num_rows == 0) {
135 135
                 foreach ($roles as $role) {
136
-                    if(!isset($role->name)){
137
-                        if($id != $botID && !in_array($role->name, $exempt, true)){
136
+                    if (!isset($role->name)) {
137
+                        if ($id != $botID && !in_array($role->name, $exempt, true)) {
138 138
                             $member->removeRole($role);
139 139
                             $guild->members->save($member);
140 140
                             // Send the info to the channel
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
                 $url = "https://api.eveonline.com/eve/CharacterAffiliation.xml.aspx?ids=$charID";
171 171
                 $xml = makeApiRequest($url);
172 172
                 // Stop the process if the api is throwing an error
173
-                if (is_null($xml)){
173
+                if (is_null($xml)) {
174 174
                     $this->logger->addInfo("{$eveName} cannot be authed, API issues detected.");
175 175
                     return null;
176 176
                 }
Please login to merge, or discard this patch.