Passed
Pull Request — master (#26)
by Bob
03:59
created
src/plugins/onTick/authCheck.php 1 patch
Spacing   +5 added lines, -5 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
Please login to merge, or discard this patch.