Passed
Branch master (c5b135)
by
unknown
02:51
created
config/config.new.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                 'lossMails' => 'true', //set as true to post both kills and losses, false to post only kills.
189 189
                 'startMail' => 1, //Put the zkill killID of your latest killmail. Otherwise it will pull from the beginning of time.
190 190
                 'minimumValue' => 0, //Put the minimum isk value for killmails here (Do not put any commas just numbers)
191
-				'minimumlossValue' => 0, //Put the minimum isk loss value for killmails here (Do not put any commas just numbers)
191
+                'minimumlossValue' => 0, //Put the minimum isk loss value for killmails here (Do not put any commas just numbers)
192 192
                 'bigKill' => null, //Set an isk amount you'd like to consider a high value kill, will alert the channel if any kills/losses hit this amount. (Leave as null if you don't want this feature)
193 193
                 'bigKillChannel' => 0, //what channel does the bot post big kills into (must be set, if ud like to use one channel just put the same u put above here)
194 194
             ),
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                 'lossMails' => 'true', //set as true to post both kills and losses, false to post only kills.
201 201
                 'startMail' => 1, //Put the zkill killID of your latest killmail. Otherwise it will pull from the beginning of time.
202 202
                 'minimumValue' => 0, //Put the minimum isk value for killmails here (Do not put any commas just numbers)
203
-				'minimumlossValue' => 0, //Put the minimum isk loss value for killmails here (Do not put any commas just numbers)
203
+                'minimumlossValue' => 0, //Put the minimum isk loss value for killmails here (Do not put any commas just numbers)
204 204
                 'bigKill' => null, //Set an isk amount you'd like to consider a high value kill, will alert the channel if any kills/losses hit this amount. (Leave as null if you don't want this feature)
205 205
                 'bigKillChannel' => 0, //what channel does the bot post big kills into (must be set, if ud like to use one channel just put the same u put above here)
206 206
             ),
Please login to merge, or discard this patch.
src/plugins/onTick/getKillmails.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -129,16 +129,16 @@
 block discarded – undo
129 129
                         $rawValue = $kill['zkb']['totalValue'];
130 130
                         //Check if killmail meets minimum value and if it meets lost minimum value
131 131
                         if (isset($kmGroup['minimumValue']) && isset($kmGroup['minimumlossValue'])) {
132
-							if ($rawValue < $kmGroup['minimumValue']) {
133
-								if ($kill['victim']['corporationID'] == $kmGroup['corpID'] && $rawValue > $kmGroup['minimumlossValue']|| 
134
-								$kill['victim']['allianceID'] == $kmGroup['allianceID'] && $rawValue > $kmGroup['minimumlossValue'])
135
-								{
136
-									$this->logger->addInfo("Killmails: Mail {$killID} posted because it meet minimum loss value required.");
137
-								} else {
138
-									$this->logger->addInfo("Killmails: Mail {$killID} ignored for not meeting the minimum value required.");
139
-									setPermCache("{$kmGroup['name']}newestKillmailID", $killID);
140
-									continue;
141
-								}
132
+                            if ($rawValue < $kmGroup['minimumValue']) {
133
+                                if ($kill['victim']['corporationID'] == $kmGroup['corpID'] && $rawValue > $kmGroup['minimumlossValue']|| 
134
+                                $kill['victim']['allianceID'] == $kmGroup['allianceID'] && $rawValue > $kmGroup['minimumlossValue'])
135
+                                {
136
+                                    $this->logger->addInfo("Killmails: Mail {$killID} posted because it meet minimum loss value required.");
137
+                                } else {
138
+                                    $this->logger->addInfo("Killmails: Mail {$killID} ignored for not meeting the minimum value required.");
139
+                                    setPermCache("{$kmGroup['name']}newestKillmailID", $killID);
140
+                                    continue;
141
+                                }
142 142
                             }
143 143
                         }
144 144
                         $totalValue = number_format($kill['zkb']['totalValue']);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
                         //Check if killmail meets minimum value and if it meets lost minimum value
131 131
                         if (isset($kmGroup['minimumValue']) && isset($kmGroup['minimumlossValue'])) {
132 132
 							if ($rawValue < $kmGroup['minimumValue']) {
133
-								if ($kill['victim']['corporationID'] == $kmGroup['corpID'] && $rawValue > $kmGroup['minimumlossValue']|| 
133
+								if ($kill['victim']['corporationID'] == $kmGroup['corpID'] && $rawValue > $kmGroup['minimumlossValue'] || 
134 134
 								$kill['victim']['allianceID'] == $kmGroup['allianceID'] && $rawValue > $kmGroup['minimumlossValue'])
135 135
 								{
136 136
 									$this->logger->addInfo("Killmails: Mail {$killID} posted because it meet minimum loss value required.");
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
@@ -196,22 +196,22 @@  discard block
 block discarded – undo
196 196
                     $allianceContacts = getContacts($allianceID);
197 197
                     $corpContacts = getContacts($corpID);
198 198
                     foreach ($roles as $role) {
199
-                        if ((@(int)$allianceContacts['standings'] === 5 || @(int)$corpContacts['standings'] === 5) && (string)$role->name === (string)$this->config['plugins']['auth']['standings']['plus5Role']) {
199
+                        if ((@(int) $allianceContacts['standings'] === 5 || @(int) $corpContacts['standings'] === 5) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['plus5Role']) {
200 200
                             $member->addRole($role);
201 201
                             $role = 'blue';
202 202
                             break;
203 203
                         }
204
-                        if ((@(int)$allianceContacts['standings'] === 10 || @(int)$corpContacts['standings'] === 10) && (string)$role->name === (string)$this->config['plugins']['auth']['standings']['plus10Role']) {
204
+                        if ((@(int) $allianceContacts['standings'] === 10 || @(int) $corpContacts['standings'] === 10) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['plus10Role']) {
205 205
                             $member->addRole($role);
206 206
                             $role = 'blue';
207 207
                             break;
208 208
                         }
209
-                        if ((@(int)$allianceContacts['standings'] === -5 || @(int)$corpContacts['standings'] === -5) && (string)$role->name === (string)$this->config['plugins']['auth']['standings']['minus5Role']) {
209
+                        if ((@(int) $allianceContacts['standings'] === -5 || @(int) $corpContacts['standings'] === -5) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['minus5Role']) {
210 210
                             $member->addRole($role);
211 211
                             $role = 'red';
212 212
                             break;
213 213
                         }
214
-                        if ((@(int)$allianceContacts['standings'] === -10 || @(int)$corpContacts['standings'] === -10) && (string)$role->name === (string)$this->config['plugins']['auth']['standings']['minus10Role']) {
214
+                        if ((@(int) $allianceContacts['standings'] === -10 || @(int) $corpContacts['standings'] === -10) && (string) $role->name === (string) $this->config['plugins']['auth']['standings']['minus10Role']) {
215 215
                             $member->addRole($role);
216 216
                             $role = 'red';
217 217
                             break;
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
                     }
220 220
                     if ($role === null) {
221 221
                         foreach ($roles as $role) {
222
-                            if ((string)$role->name === (string)$this->config['plugins']['auth']['standings']['neutralRole']) {
222
+                            if ((string) $role->name === (string) $this->config['plugins']['auth']['standings']['neutralRole']) {
223 223
                                 $member->addRole($role);
224 224
                                 $role = 'neut';
225 225
                                 break;
Please login to merge, or discard this patch.
src/lib/eveApi.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 function characterName($characterID)
102 102
 {
103 103
     $character = characterDetails($characterID);
104
-    $name = (string)$character['name'];
104
+    $name = (string) $character['name'];
105 105
     if (null === $name || '' === $name) { // Make sure it's always set.
106 106
         $url = "https://api.eveonline.com/eve/CharacterName.xml.aspx?ids={$characterID}";
107 107
         $xml = makeApiRequest($url);
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         // Close the connection
139 139
         curl_close($ch);
140 140
         $data = json_decode($data, TRUE);
141
-        $id = (int)$data['character'][0];
141
+        $id = (int) $data['character'][0];
142 142
 
143 143
     } catch (Exception $e) {
144 144
         $logger->error('EVE ESI Error: ' . $e->getMessage());
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         // Close the connection
212 212
         curl_close($ch);
213 213
         $data = json_decode($data, TRUE);
214
-        $name = (string)$data['solar_system_name'];
214
+        $name = (string) $data['solar_system_name'];
215 215
 
216 216
     } catch (Exception $e) {
217 217
         $logger->error('EVE ESI Error: ' . $e->getMessage());
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         // Close the connection
252 252
         curl_close($ch);
253 253
         $data = json_decode($data, TRUE);
254
-        $id = (int)$data['corporation'][0];
254
+        $id = (int) $data['corporation'][0];
255 255
 
256 256
     } catch (Exception $e) {
257 257
         $logger->error('EVE ESI Error: ' . $e->getMessage());
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 function corpName($corpID)
275 275
 {
276 276
     $corporation = corpDetails($corpID);
277
-    $name = (string)$corporation['corporation_name'];
277
+    $name = (string) $corporation['corporation_name'];
278 278
     if (null === $name || '' === $name) { // Make sure it's always set.
279 279
         $url = "https://api.eveonline.com/eve/CharacterName.xml.aspx?ids={$corpID}";
280 280
         $xml = makeApiRequest($url);
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
         // Close the connection
346 346
         curl_close($ch);
347 347
         $data = json_decode($data, TRUE);
348
-        $name = (string)$data['alliance_name'];
348
+        $name = (string) $data['alliance_name'];
349 349
 
350 350
     } catch (Exception $e) {
351 351
         $logger->error('EVE ESI Error: ' . $e->getMessage());
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
         // Close the connection
386 386
         curl_close($ch);
387 387
         $data = json_decode($data, TRUE);
388
-        $id = (int)$data['solarsystem'][0];
388
+        $id = (int) $data['solarsystem'][0];
389 389
 
390 390
     } catch (Exception $e) {
391 391
         $logger->error('EVE ESI Error: ' . $e->getMessage());
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
         // Close the connection
425 425
         curl_close($ch);
426 426
         $data = json_decode($data, TRUE);
427
-        $name = (string)$data['name'];
427
+        $name = (string) $data['name'];
428 428
 
429 429
     } catch (Exception $e) {
430 430
         $logger->error('EVE ESI Error: ' . $e->getMessage());
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
         $logger->error('Fuzzwork Error: ' . $e->getMessage());
469 469
         return null;
470 470
     }
471
-    $id = (int)$data['typeID'];
471
+    $id = (int) $data['typeID'];
472 472
 
473 473
     if (null === $id) { // Make sure it's always set.
474 474
         $id = 'Unknown';
Please login to merge, or discard this patch.