Test Setup Failed
Branch dev (952e73)
by
unknown
01:30
created
src/plugins/admin/setAvatar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             $roles = $member->roles;
72 72
             foreach ($roles as $role) {
73 73
                 if (in_array(strtolower($role->name), $adminRoles, true)) {
74
-                    $avatarURL = strtolower((string)$data['messageString']);
74
+                    $avatarURL = strtolower((string) $data['messageString']);
75 75
                     $ch = curl_init($avatarURL);
76 76
                     if (substr($avatarURL, -4) === '.jpg') {
77 77
                         $fp = fopen('/tmp/avatar.jpg', 'wb');
Please login to merge, or discard this patch.
Dramiel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 GLOBAL $logger;
56 56
 
57 57
 //Check we are not running on a 32bit platform
58
-if(PHP_INT_SIZE == 4)
58
+if (PHP_INT_SIZE == 4)
59 59
 {
60 60
 	$logger->error('32bit PHP found, if you are running a 64bit OS please install 64bit PHP');
61 61
 	die();
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                         clearQueuedMessages($id);
207 207
                         continue;
208 208
                     }
209
-                    $channel = $guild->channels->get('id', (int)$queuedMessage['channel']);
209
+                    $channel = $guild->channels->get('id', (int) $queuedMessage['channel']);
210 210
                     //Check if channel is bad
211 211
                     if (null === $channel) {
212 212
                         $logger->addInfo("QueueProcessing Error- Item #{$id} : Channel provided is incorrect, removing it from the queue");
Please login to merge, or discard this patch.
src/plugins/onTick/rssReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
             }
92 92
 
93 93
             $rss = new SimpleXMLElement($rssUrl, null, true); // XML parser
94
-			if ($rss===null || !is_object($rss)) {
94
+			if ($rss === null || !is_object($rss)) {
95 95
 				$this->logger->addInfo("Failed to load xml file: {$rssUrl}");
96 96
 				break;
97 97
 			}
Please login to merge, or discard this patch.
src/plugins/onTick/getKillmails.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -93,16 +93,16 @@  discard block
 block discarded – undo
93 93
             if ($kmGroup['startMail'] > $SavedKillID || null === $SavedKillID) {
94 94
                 $SavedKillID = $kmGroup['startMail'];
95 95
             }
96
-            if ((string)$kmGroup['allianceID'] === '0' & $kmGroup['lossMails'] === 'true') {
96
+            if ((string) $kmGroup['allianceID'] === '0' & $kmGroup['lossMails'] === 'true') {
97 97
                 $url = "https://zkillboard.com/api/corporationID/{$kmGroup['corpID']}/no-attackers/no-items/orderDirection/asc/pastSeconds/10800/";
98 98
             }
99
-            if ((string)$kmGroup['allianceID'] === '0' & $kmGroup['lossMails'] === 'false') {
99
+            if ((string) $kmGroup['allianceID'] === '0' & $kmGroup['lossMails'] === 'false') {
100 100
                 $url = "https://zkillboard.com/api/corporationID/{$kmGroup['corpID']}/no-attackers/no-items/kills/orderDirection/asc/pastSeconds/10800/";
101 101
             }
102
-            if ((string)$kmGroup['allianceID'] !== '0' & $kmGroup['lossMails'] === 'true') {
102
+            if ((string) $kmGroup['allianceID'] !== '0' & $kmGroup['lossMails'] === 'true') {
103 103
                 $url = "https://zkillboard.com/api/allianceID/{$kmGroup['allianceID']}/no-attackers/no-items/orderDirection/asc/pastSeconds/10800/";
104 104
             }
105
-            if ((string)$kmGroup['allianceID'] !== '0' & $kmGroup['lossMails'] === 'false') {
105
+            if ((string) $kmGroup['allianceID'] !== '0' & $kmGroup['lossMails'] === 'false') {
106 106
                 $url = "https://zkillboard.com/api/allianceID/{$kmGroup['allianceID']}/no-attackers/no-items/kills/orderDirection/asc/pastSeconds/10800/";
107 107
             }
108 108
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
  //               if ($i < 10) {
205 205
                     $killID = $kill['killID'];
206 206
                     //check if mail is old
207
-                    if ((int)$killID <= (int)$oldID) {
207
+                    if ((int) $killID <= (int) $oldID) {
208 208
                         continue;
209 209
                     }
210 210
                     //save highest killID for cache
Please login to merge, or discard this patch.
src/plugins/onTick/authCheck.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -245,13 +245,13 @@  discard block
 block discarded – undo
245 245
                 $corporationDetails = $this->getCorpDetails($character['corporation_id']);
246 246
                 $allianceContacts = getContacts($corporationDetails['alliance_id']);
247 247
                 $corpContacts = getContacts($character['corporation_id']);
248
-                if ($role === 'blue' && ((int)$allianceContacts['standing'] === 5 || 10 || (int)$corpContacts['standing'] === 5 || 10)) {
248
+                if ($role === 'blue' && ((int) $allianceContacts['standing'] === 5 || 10 || (int) $corpContacts['standing'] === 5 || 10)) {
249 249
                     $return = true;
250 250
                 }
251
-                if ($role === 'red' && ((int)$allianceContacts['standing'] === -5 || -10 || (int)$corpContacts['standing'] === -5 || -10)) {
251
+                if ($role === 'red' && ((int) $allianceContacts['standing'] === -5 || -10 || (int) $corpContacts['standing'] === -5 || -10)) {
252 252
                     $return = true;
253 253
                 }
254
-                if ($role === 'neut' && ((int)$allianceContacts['standing'] === 0 || (int)$corpContacts['standing'] === 0 || (@(int)$allianceContacts['standings'] === null || '' && @(int)$corpContacts['standings'] === null || ''))) {
254
+                if ($role === 'neut' && ((int) $allianceContacts['standing'] === 0 || (int) $corpContacts['standing'] === 0 || (@(int) $allianceContacts['standings'] === null || '' && @(int) $corpContacts['standings'] === null || ''))) {
255 255
                     $return = true;
256 256
                 }
257 257
             }
@@ -329,14 +329,14 @@  discard block
 block discarded – undo
329 329
     private function standingsUpdate()
330 330
     {
331 331
         foreach ($this->apiKey as $apiKey) {
332
-            if ((string)$apiKey['keyID'] === (string)$this->config['plugins']['auth']['standings']['apiKey']) {
332
+            if ((string) $apiKey['keyID'] === (string) $this->config['plugins']['auth']['standings']['apiKey']) {
333 333
                 $url = "https://api.eveonline.com/char/ContactList.xml.aspx?keyID={$apiKey['keyID']}&vCode={$apiKey['vCode']}&characterID={$apiKey['characterID']}";
334 334
                 $xml = makeApiRequest($url);
335 335
                 if (empty($xml)) {
336 336
                     return null;
337 337
                 }
338 338
                 foreach ($xml->result->rowset as $contactType) {
339
-                    if ((string)$contactType->attributes()->name === 'corporateContactList' || 'allianceContactList') {
339
+                    if ((string) $contactType->attributes()->name === 'corporateContactList' || 'allianceContactList') {
340 340
                         foreach ($contactType->row as $contact) {
341 341
                             if (null !== $contact['contactID'] && $contact['contactName'] && $contact['standing']) {
342 342
                                 addContactInfo($contact['contactID'], $contact['contactName'], $contact['standing']);
Please login to merge, or discard this patch.
src/plugins/onMessage/price.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -132,12 +132,12 @@
 block discarded – undo
132 132
                     $data = new SimpleXMLElement(downloadData("https://api.eve-central.com/api/marketstat?usesystem={$solarSystemID}&typeid={$typeID}"));
133 133
                 }
134 134
 
135
-                $lowBuy = str_pad(number_format((float) $data->marketstat->type->buy->min, 2),18," ",STR_PAD_LEFT);
136
-                $avgBuy = str_pad(number_format((float) $data->marketstat->type->buy->avg, 2),18," ",STR_PAD_LEFT);
137
-                $highBuy = str_pad(number_format((float) $data->marketstat->type->buy->max, 2),18," ",STR_PAD_LEFT);
138
-                $lowSell = str_pad(number_format((float) $data->marketstat->type->sell->min, 2),18," ",STR_PAD_LEFT);
139
-                $avgSell = str_pad(number_format((float) $data->marketstat->type->sell->avg, 2),18," ",STR_PAD_LEFT);
140
-                $highSell = str_pad(number_format((float) $data->marketstat->type->sell->max, 2),18," ",STR_PAD_LEFT);
135
+                $lowBuy = str_pad(number_format((float) $data->marketstat->type->buy->min, 2), 18, " ", STR_PAD_LEFT);
136
+                $avgBuy = str_pad(number_format((float) $data->marketstat->type->buy->avg, 2), 18, " ", STR_PAD_LEFT);
137
+                $highBuy = str_pad(number_format((float) $data->marketstat->type->buy->max, 2), 18, " ", STR_PAD_LEFT);
138
+                $lowSell = str_pad(number_format((float) $data->marketstat->type->sell->min, 2), 18, " ", STR_PAD_LEFT);
139
+                $avgSell = str_pad(number_format((float) $data->marketstat->type->sell->avg, 2), 18, " ", STR_PAD_LEFT);
140
+                $highSell = str_pad(number_format((float) $data->marketstat->type->sell->max, 2), 18, " ", STR_PAD_LEFT);
141 141
 
142 142
                 $this->logger->addInfo("Price: Sending pricing info to {$user}");
143 143
                 $solarSystemName = $systemName === 'pc' ? 'Global' : ucfirst($systemName);
Please login to merge, or discard this patch.
src/lib/Db.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     $logger->pushHandler(new StreamHandler(__DIR__ . '/../../log/libraryError.log', Logger::DEBUG));
38 38
     if ($db === null) {
39 39
         $db = __DIR__ . '/../../database/dramiel.sqlite';
40
-    } elseif ($db === 'eve'){
40
+    } elseif ($db === 'eve') {
41 41
         $db = __DIR__ . '/../../database/eveData.db';
42 42
     }
43 43
 
Please login to merge, or discard this patch.
src/plugins/onTick/siloFull.php 1 patch
Spacing   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -131,10 +131,10 @@  discard block
 block discarded – undo
131 131
                                     $gooVolume = 0.1;
132 132
                                     $gooCurrent = $gooAmount * $gooVolume;
133 133
                                     //double check tower race
134
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
134
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
135 135
                                         $towerFull = 30000;
136 136
                                     }
137
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
137
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
138 138
                                         $towerFull = 40000;
139 139
                                     }
140 140
                                     $cleanNumber = number_format($gooCurrent);
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
                                     $gooVolume = 0.4;
174 174
                                     $gooCurrent = $gooAmount * $gooVolume;
175 175
                                     //double check tower race
176
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
176
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
177 177
                                         $towerFull = 30000;
178 178
                                     }
179
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
179
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
180 180
                                         $towerFull = 40000;
181 181
                                     }
182 182
                                     $cleanNumber = number_format($gooCurrent);
@@ -215,10 +215,10 @@  discard block
 block discarded – undo
215 215
                                     $gooVolume = 0.8;
216 216
                                     $gooCurrent = $gooAmount * $gooVolume;
217 217
                                     //double check tower race
218
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
218
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
219 219
                                         $towerFull = 30000;
220 220
                                     }
221
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
221
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
222 222
                                         $towerFull = 40000;
223 223
                                     }
224 224
                                     $cleanNumber = number_format($gooCurrent);
@@ -257,10 +257,10 @@  discard block
 block discarded – undo
257 257
                                     $gooVolume = 0.6;
258 258
                                     $gooCurrent = $gooAmount * $gooVolume;
259 259
                                     //double check tower race
260
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
260
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
261 261
                                         $towerFull = 30000;
262 262
                                     }
263
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
263
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
264 264
                                         $towerFull = 40000;
265 265
                                     }
266 266
                                     $cleanNumber = number_format($gooCurrent);
@@ -299,10 +299,10 @@  discard block
 block discarded – undo
299 299
                                     $gooVolume = 0.4;
300 300
                                     $gooCurrent = $gooAmount * $gooVolume;
301 301
                                     //double check tower race
302
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
302
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
303 303
                                         $towerFull = 30000;
304 304
                                     }
305
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
305
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
306 306
                                         $towerFull = 40000;
307 307
                                     }
308 308
                                     $cleanNumber = number_format($gooCurrent);
@@ -341,10 +341,10 @@  discard block
 block discarded – undo
341 341
                                     $gooVolume = 0.1;
342 342
                                     $gooCurrent = $gooAmount * $gooVolume;
343 343
                                     //double check tower race
344
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
344
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
345 345
                                         $towerFull = 30000;
346 346
                                     }
347
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
347
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
348 348
                                         $towerFull = 40000;
349 349
                                     }
350 350
                                     $cleanNumber = number_format($gooCurrent);
@@ -383,10 +383,10 @@  discard block
 block discarded – undo
383 383
                                     $gooVolume = 0.8;
384 384
                                     $gooCurrent = $gooAmount * $gooVolume;
385 385
                                     //double check tower race
386
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
386
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
387 387
                                         $towerFull = 30000;
388 388
                                     }
389
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
389
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
390 390
                                         $towerFull = 40000;
391 391
                                     }
392 392
                                     $cleanNumber = number_format($gooCurrent);
@@ -425,10 +425,10 @@  discard block
 block discarded – undo
425 425
                                     $gooVolume = 0.1;
426 426
                                     $gooCurrent = $gooAmount * $gooVolume;
427 427
                                     //double check tower race
428
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
428
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
429 429
                                         $towerFull = 30000;
430 430
                                     }
431
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
431
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
432 432
                                         $towerFull = 40000;
433 433
                                     }
434 434
                                     $cleanNumber = number_format($gooCurrent);
@@ -467,10 +467,10 @@  discard block
 block discarded – undo
467 467
                                     $gooVolume = 0.8;
468 468
                                     $gooCurrent = $gooAmount * $gooVolume;
469 469
                                     //double check tower race
470
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
470
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
471 471
                                         $towerFull = 30000;
472 472
                                     }
473
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
473
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
474 474
                                         $towerFull = 40000;
475 475
                                     }
476 476
                                     $cleanNumber = number_format($gooCurrent);
@@ -509,10 +509,10 @@  discard block
 block discarded – undo
509 509
                                     $gooVolume = 1;
510 510
                                     $gooCurrent = $gooAmount * $gooVolume;
511 511
                                     //double check tower race
512
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
512
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
513 513
                                         $towerFull = 30000;
514 514
                                     }
515
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
515
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
516 516
                                         $towerFull = 40000;
517 517
                                     }
518 518
                                     $cleanNumber = number_format($gooCurrent);
@@ -551,10 +551,10 @@  discard block
 block discarded – undo
551 551
                                     $gooVolume = 1;
552 552
                                     $gooCurrent = $gooAmount * $gooVolume;
553 553
                                     //double check tower race
554
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
554
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
555 555
                                         $towerFull = 30000;
556 556
                                     }
557
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
557
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
558 558
                                         $towerFull = 40000;
559 559
                                     }
560 560
                                     $cleanNumber = number_format($gooCurrent);
@@ -593,10 +593,10 @@  discard block
 block discarded – undo
593 593
                                     $gooVolume = 1;
594 594
                                     $gooCurrent = $gooAmount * $gooVolume;
595 595
                                     //double check tower race
596
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
596
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
597 597
                                         $towerFull = 30000;
598 598
                                     }
599
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
599
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
600 600
                                         $towerFull = 40000;
601 601
                                     }
602 602
                                     $cleanNumber = number_format($gooCurrent);
@@ -635,10 +635,10 @@  discard block
 block discarded – undo
635 635
                                     $gooVolume = 1;
636 636
                                     $gooCurrent = $gooAmount * $gooVolume;
637 637
                                     //double check tower race
638
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
638
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
639 639
                                         $towerFull = 30000;
640 640
                                     }
641
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
641
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
642 642
                                         $towerFull = 40000;
643 643
                                     }
644 644
                                     $cleanNumber = number_format($gooCurrent);
@@ -677,10 +677,10 @@  discard block
 block discarded – undo
677 677
                                     $gooVolume = 0.4;
678 678
                                     $gooCurrent = $gooAmount * $gooVolume;
679 679
                                     //double check tower race
680
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
680
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
681 681
                                         $towerFull = 30000;
682 682
                                     }
683
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
683
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
684 684
                                         $towerFull = 40000;
685 685
                                     }
686 686
                                     $cleanNumber = number_format($gooCurrent);
@@ -719,10 +719,10 @@  discard block
 block discarded – undo
719 719
                                     $gooVolume = 0.1;
720 720
                                     $gooCurrent = $gooAmount * $gooVolume;
721 721
                                     //double check tower race
722
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
722
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
723 723
                                         $towerFull = 30000;
724 724
                                     }
725
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
725
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
726 726
                                         $towerFull = 40000;
727 727
                                     }
728 728
                                     $cleanNumber = number_format($gooCurrent);
@@ -761,10 +761,10 @@  discard block
 block discarded – undo
761 761
                                     $gooVolume = 1;
762 762
                                     $gooCurrent = $gooAmount * $gooVolume;
763 763
                                     //double check tower race
764
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
764
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
765 765
                                         $towerFull = 30000;
766 766
                                     }
767
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
767
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
768 768
                                         $towerFull = 40000;
769 769
                                     }
770 770
                                     $cleanNumber = number_format($gooCurrent);
@@ -803,10 +803,10 @@  discard block
 block discarded – undo
803 803
                                     $gooVolume = 1;
804 804
                                     $gooCurrent = $gooAmount * $gooVolume;
805 805
                                     //double check tower race
806
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
806
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
807 807
                                         $towerFull = 30000;
808 808
                                     }
809
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
809
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
810 810
                                         $towerFull = 40000;
811 811
                                     }
812 812
                                     $cleanNumber = number_format($gooCurrent);
@@ -845,10 +845,10 @@  discard block
 block discarded – undo
845 845
                                     $gooVolume = 0.4;
846 846
                                     $gooCurrent = $gooAmount * $gooVolume;
847 847
                                     //double check tower race
848
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
848
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
849 849
                                         $towerFull = 30000;
850 850
                                     }
851
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
851
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
852 852
                                         $towerFull = 40000;
853 853
                                     }
854 854
                                     $cleanNumber = number_format($gooCurrent);
@@ -887,10 +887,10 @@  discard block
 block discarded – undo
887 887
                                     $gooVolume = 0.4;
888 888
                                     $gooCurrent = $gooAmount * $gooVolume;
889 889
                                     //double check tower race
890
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
890
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
891 891
                                         $towerFull = 30000;
892 892
                                     }
893
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
893
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
894 894
                                         $towerFull = 40000;
895 895
                                     }
896 896
                                     $cleanNumber = number_format($gooCurrent);
@@ -929,10 +929,10 @@  discard block
 block discarded – undo
929 929
                                     $gooVolume = 1;
930 930
                                     $gooCurrent = $gooAmount * $gooVolume;
931 931
                                     //double check tower race
932
-                                    if ((int)$towerFull === 20000 && (int)$gooCurrent > 20000) {
932
+                                    if ((int) $towerFull === 20000 && (int) $gooCurrent > 20000) {
933 933
                                         $towerFull = 30000;
934 934
                                     }
935
-                                    if ((int)$towerFull === 20000 || 30000 && (int)$gooCurrent > 30000) {
935
+                                    if ((int) $towerFull === 20000 || 30000 && (int) $gooCurrent > 30000) {
936 936
                                         $towerFull = 40000;
937 937
                                     }
938 938
                                     $cleanNumber = number_format($gooCurrent);
@@ -979,9 +979,9 @@  discard block
 block discarded – undo
979 979
         $url = "https://api.eveonline.com/corp/StarbaseList.xml.aspx?keyID={$keyID}&vCode={$vCode}";
980 980
         $xml = makeApiRequest($url);
981 981
         foreach ($xml->result->rowset->row as $tower) {
982
-            $typeID = (int)$tower->attributes()->typeID;
983
-            $locationID = (int)$tower->attributes()->locationID;
984
-            if ($locationID === (int)$systemID) {
982
+            $typeID = (int) $tower->attributes()->typeID;
983
+            $locationID = (int) $tower->attributes()->locationID;
984
+            if ($locationID === (int) $systemID) {
985 985
                 if ($typeID === 12235 || $typeID === 20059 || $typeID === 20060 || $typeID === 27532 || $typeID === 27591 || $typeID === 27594 || $typeID === 27530 || $typeID === 27589 || $typeID === 27592 || $typeID === 27780 || $typeID === 27782 || $typeID === 27784 || $typeID === 27786 || $typeID === 27788 || $typeID === 27790) {
986 986
                     return '1';
987 987
                 }
Please login to merge, or discard this patch.
src/plugins/onMessage/sysInfo.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	{
30 30
 		$channelID = (int) $msgData['message']['channelID'];
31 31
 
32
-		if(in_array($channelID, $this->excludeChannel, true))
32
+		if (in_array($channelID, $this->excludeChannel, true))
33 33
 		{
34 34
 			return null;
35 35
 		}
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
 		$user = $msgData['message']['from'];
41 41
 
42 42
 		$data = command($message, $this->information()['trigger'], $this->config['bot']['trigger']);
43
-		if(isset($data['trigger']))
43
+		if (isset($data['trigger']))
44 44
 		{
45 45
 			$messageString = strstr($data['messageString'], '@') ? str_replace('<@', '', str_replace('>', '', $data['messageString'])) : $data['messageString'];
46
-			if(is_numeric($messageString))
46
+			if (is_numeric($messageString))
47 47
 			{
48 48
 				$messageString = dbQueryField('SELECT name FROM usersSeen WHERE id = :id', 'name', array(':id' => $messageString));
49 49
 			}
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 			$sysID = urlencode(getSystemID($cleanString));
52 52
 
53 53
 			//Check if we get a system back, otherwise check for partials
54
-			if(empty($sysID))
54
+			if (empty($sysID))
55 55
 			{
56 56
                 return $this->message->reply('**Error:** no data available');
57 57
 			}
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
 			$regionID = $json->info->regionID;
69 69
 			$regionName = getRegionName($regionID);
70 70
 
71
-			$thisMonth = (string)date('Ym');
72
-            $lastMonth = (string)date('Ym', strtotime('first day of previous month'));
71
+			$thisMonth = (string) date('Ym');
72
+            $lastMonth = (string) date('Ym', strtotime('first day of previous month'));
73 73
 
74 74
             $thisMonthKill = $json->months->$thisMonth->shipsDestroyed;
75 75
             $lastMonthKill = $json->months->$lastMonth->shipsDestroyed;
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
             $activeChars = $activePVP->characters->count;
80 80
 
81 81
 			$sysName = $systemDetails['name'];
82
-			$secStatus = round($systemDetails['security_status'],2);
82
+			$secStatus = round($systemDetails['security_status'], 2);
83 83
 
84 84
 			$npc = "https://api.eveonline.com/map/kills.xml.aspx";
85 85
 			$npc = new SimpleXMLElement(file_get_contents($npc));
86
-			foreach($npc->result->rowset->row as $row){
87
-				if($row->attributes()->solarSystemID == $sysID){
86
+			foreach ($npc->result->rowset->row as $row) {
87
+				if ($row->attributes()->solarSystemID == $sysID) {
88 88
 					$npcKills = $row->attributes()->factionKills;
89 89
 					$podKills = $row->attributes()->podKills;
90 90
 				}
Please login to merge, or discard this patch.