Passed
Push — master ( 145711...13d03b )
by Bob
03:46
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 2 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.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
             //Remove members who have roles but never authed
117 117
             $guild = $this->discord->guilds->get('id', $id);
118
-            foreach($guild->members as $member) {
118
+            foreach ($guild->members as $member) {
119 119
                 $notifier = null;
120 120
                 $id = $member->id;
121 121
                 $username = $member->username;
@@ -124,9 +124,9 @@  discard block
 block discarded – undo
124 124
                 $sql = "SELECT * FROM authUsers WHERE discordID='$id' AND active='yes'";
125 125
 
126 126
                 $result = $conn->query($sql);
127
-                if($result->num_rows == 0) {
127
+                if ($result->num_rows == 0) {
128 128
                     foreach ($roles as $role) {
129
-                        if(!isset($role->name)){
129
+                        if (!isset($role->name)) {
130 130
                             $member->removeRole($role);
131 131
                             $member->save();
132 132
                             // Send the info to the channel
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                             $channelID = $toDiscordChannel;
135 135
                             $channel = Channel::find($channelID);
136 136
                             $channel->sendMessage($msg, false);
137
-                            $this->logger->addInfo("{$username} has been removed from the {$role->name} role as they never authed.");;
137
+                            $this->logger->addInfo("{$username} has been removed from the {$role->name} role as they never authed."); ;
138 138
                         }
139 139
                     }
140 140
                 }
Please login to merge, or discard this patch.