Passed
Push — master ( 631204...5a97c7 )
by Bob
03:13
created
Dramiel.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -148,8 +148,9 @@
 block discarded – undo
148 148
         
149 149
         // Run the Tick plugins
150 150
         $ws->loop->addPeriodicTimer(1, function () use ($pluginsT) {
151
-            foreach ($pluginsT as $plugin)
152
-                $plugin->tick();
151
+            foreach ($pluginsT as $plugin) {
152
+                            $plugin->tick();
153
+            }
153 154
         });
154 155
 
155 156
         // Mem cleanup every 30 minutes
Please login to merge, or discard this patch.
src/plugins/onTick/authCheck.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -229,4 +229,4 @@
 block discarded – undo
229 229
     {
230 230
     }
231 231
 }
232
- 
233 232
\ No newline at end of file
233
+    
234 234
\ No newline at end of file
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
  */
25 25
 
26 26
 use Discord\Parts\Channel\Channel;
27
-use Discord\Parts\User\Client;
28 27
 
29 28
 /**
30 29
  * Class fileAuthCheck
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
             //Remove members who have roles but never authed
121 121
             $guild = $this->discord->guilds->get('id', $id);
122
-            foreach($guild->members as $member) {
122
+            foreach ($guild->members as $member) {
123 123
                 $notifier = null;
124 124
                 $id = $member->id;
125 125
                 $username = $member->username;
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
                 $sql = "SELECT * FROM authUsers WHERE discordID='$id' AND active='yes'";
129 129
 
130 130
                 $result = $conn->query($sql);
131
-                if($result->num_rows == 0) {
131
+                if ($result->num_rows == 0) {
132 132
                     foreach ($roles as $role) {
133
-                        if(!isset($role->name)){
134
-                            if($id != $botID && !in_array($role->name, $exempt, true)){
133
+                        if (!isset($role->name)) {
134
+                            if ($id != $botID && !in_array($role->name, $exempt, true)) {
135 135
                                 $member->removeRole($role);
136 136
                                 $member->save();
137 137
                                 // Send the info to the channel
Please login to merge, or discard this patch.
config/config.new.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
         "alertChannel" => 0, // if using periodic check put the channel you'd like the bot to log removing users in. (Recommended you don't use an active chat channel)
134 134
         "nameEnforce" => "false", // put "true" or "false", if you'd like to make sure people's name match character names
135 135
         "url" => "http://.....", // put a url here if using sso auth for ur sso page.
136
-        "exempt" => array("","") // role names that are exempt from auth checks (wont be removed by the bot)
136
+        "exempt" => array("", "") // role names that are exempt from auth checks (wont be removed by the bot)
137 137
     ),
138 138
     //Killmail posting
139 139
     "getKillmails" => array(
Please login to merge, or discard this patch.