Passed
Branch master (db18d2)
by
unknown
03:19
created
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
 		'motd' => array(
134 134
         'keyID' => '', //char api keyID (Must have channel on api and mod rights on the char)
135 135
         'vCode' => '', //char api vCode
136
-        'characterID' => , //ID Of the character with mod rights to the channel, can get this from zkill, look up your char and its /character/#### is your char ID
136
+        'characterID' =>, //ID Of the character with mod rights to the channel, can get this from zkill, look up your char and its /character/#### is your char ID
137 137
         'channelname' => '', //name of channel you are requesting, must be IDENTICAL
138 138
     ),
139 139
     // what channel for eve notifications/also the channel for tq status alerts
Please login to merge, or discard this patch.
src/plugins/onMessage/auth.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -194,22 +194,22 @@  discard block
 block discarded – undo
194 194
                     $allianceContacts = getContacts($allianceID);
195 195
                     $corpContacts = getContacts($corpID);
196 196
                     foreach ($roles as $role) {
197
-                        if ((@(int)$allianceContacts['standing'] === 5 || @(int)$corpContacts['standing'] === 5) && (string)$role->name === (string)$this->config['plugins']['auth']['standings']['plus5Role']) {
197
+                        if ((@(int) $allianceContacts['standing'] === 5 || @(int) $corpContacts['standing'] === 5) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['plus5Role']) {
198 198
                             $member->addRole($role);
199 199
                             $role = 'blue';
200 200
                             break;
201 201
                         }
202
-                        if ((@(int)$allianceContacts['standing'] === 10 || @(int)$corpContacts['standing'] === 10) && (string)$role->name === (string)$this->config['plugins']['auth']['standings']['plus10Role']) {
202
+                        if ((@(int) $allianceContacts['standing'] === 10 || @(int) $corpContacts['standing'] === 10) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['plus10Role']) {
203 203
                             $member->addRole($role);
204 204
                             $role = 'blue';
205 205
                             break;
206 206
                         }
207
-                        if ((@(int)$allianceContacts['standing'] === -5 || @(int)$corpContacts['standing'] === -5) && (string)$role->name === (string)$this->config['plugins']['auth']['standings']['minus5Role']) {
207
+                        if ((@(int) $allianceContacts['standing'] === -5 || @(int) $corpContacts['standing'] === -5) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['minus5Role']) {
208 208
                             $member->addRole($role);
209 209
                             $role = 'red';
210 210
                             break;
211 211
                         }
212
-                        if ((@(int)$allianceContacts['standing'] === -10 || @(int)$corpContacts['standing'] === -10) && (string)$role->name === (string)$this->config['plugins']['auth']['standings']['minus10Role']) {
212
+                        if ((@(int) $allianceContacts['standing'] === -10 || @(int) $corpContacts['standing'] === -10) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['minus10Role']) {
213 213
                             $member->addRole($role);
214 214
                             $role = 'red';
215 215
                             break;
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
                     }
218 218
                     if ($role === null) {
219 219
                         foreach ($roles as $role) {
220
-                            if ((string)$role->name === (string)$this->config['plugins']['auth']['standings']['neutralRole']) {
220
+                            if ((string) $role->name === (string) $this->config['plugins']['auth']['standings']['neutralRole']) {
221 221
                                 $member->addRole($role);
222 222
                                 $role = 'neut';
223 223
                                 break;
Please login to merge, or discard this patch.
src/plugins/onTick/authCheck.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -202,17 +202,17 @@
 block discarded – undo
202 202
                 if ($role === 'blue' || 'neut' || 'red') {
203 203
                     $allianceContacts = getContacts($allianceID);
204 204
                     $corpContacts = getContacts($corporationID);
205
-                    if ($role === 'blue' && ((int)$allianceContacts['standing'] === 5 || 10 || (int)$corpContacts['standing'] === 5 || 10)) {
205
+                    if ($role === 'blue' && ((int) $allianceContacts['standing'] === 5 || 10 || (int) $corpContacts['standing'] === 5 || 10)) {
206 206
                         $standings = 1;
207 207
                     }
208
-                    if ($role === 'red' && ((int)$allianceContacts['standing'] === -5 || -10 || (int)$corpContacts['standing'] === -5 || -10)) {
208
+                    if ($role === 'red' && ((int) $allianceContacts['standing'] === -5 || -10 || (int) $corpContacts['standing'] === -5 || -10)) {
209 209
                         $standings = 1;
210 210
                     }
211
-                    if ($role === 'neut' && ((int)$allianceContacts['standing'] === 0 || (int)$corpContacts['standing'] === 0 || (@(int)$allianceContacts['standings'] === null || '' && @(int)$corpContacts['standings'] === null || ''))) {
211
+                    if ($role === 'neut' && ((int) $allianceContacts['standing'] === 0 || (int) $corpContacts['standing'] === 0 || (@(int) $allianceContacts['standings'] === null || '' && @(int) $corpContacts['standings'] === null || ''))) {
212 212
                         $standings = 1;
213 213
                     }
214 214
                 }
215
-                if (!in_array((int)$allianceID, $allianceArray) && !in_array((int)$corporationID, $corpArray) && null === $standings) {
215
+                if (!in_array((int) $allianceID, $allianceArray) && !in_array((int) $corporationID, $corpArray) && null === $standings) {
216 216
                     // Deactivate user in database
217 217
                     $sql = "UPDATE authUsers SET active='no' WHERE discordID='$discordID'";
218 218
                     $this->logger->addInfo("AuthCheck: {$eveName} account has been deactivated as they are no longer in a correct corp/alliance.");
Please login to merge, or discard this patch.