Test Setup Failed
Push — master ( 411dc9...31dfdc )
by Bob
03:49
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   +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
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
                     $url = "https://api.eveonline.com/eve/CharacterAffiliation.xml.aspx?ids=$charID";
165 165
                     $xml = makeApiRequest($url);
166 166
                     // Stop the process if the api is throwing an error
167
-                    if (is_null($xml)){
167
+                    if (is_null($xml)) {
168 168
                         return null;
169 169
                     }
170 170
                     if ($xml->result->rowset->row[0]) {
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.
src/lib/cURL.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@
 block discarded – undo
66 66
     $logger->pushHandler(new StreamHandler(__DIR__ . '/log/libraryError.log', Logger::DEBUG));
67 67
     $userAgent = "Mozilla/5.0 (en-us;)";
68 68
     try {
69
-        $opts = array (
70
-            'http' => array (
69
+        $opts = array(
70
+            'http' => array(
71 71
                 'method' => "GET",
72 72
                 'user_agent' => $userAgent,
73 73
             )
Please login to merge, or discard this patch.