Passed
Branch master (6c062f)
by
unknown
02:36
created
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/onTick/getKillmails.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
                 } elseif (in_array((int) $kmGroup['allianceID'], $attackerAllianceArray) && (int) $kmGroup['allianceID'] !== 0) {
154 154
                     $allianceKill = true;
155 155
                 } else {
156
-                	//if it wasn't any of these continue in case there is another group to process
156
+                    //if it wasn't any of these continue in case there is another group to process
157 157
                     continue;
158 158
                 }
159 159
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,10 +102,10 @@
 block discarded – undo
102 102
                 $systemName = systemName($systemID);
103 103
                 $killTime = $kill['package']['killmail']['killmail_time'];
104 104
                 $victimAllianceID = @$kill['package']['killmail']['victim']['alliance_id'];
105
-                if (isSet($victimAllianceID)){$victimAllianceName = allianceName($victimAllianceID);} else {$victimAllianceName = null;}
105
+                if (isSet($victimAllianceID)) {$victimAllianceName = allianceName($victimAllianceID); } else {$victimAllianceName = null; }
106 106
                 $victimName = @$kill['package']['killmail']['victim']['character']['name'];
107 107
                 $victimCorpID = @$kill['package']['killmail']['victim']['corporation_id'];
108
-                if (isSet($victimCorpID)){$victimCorpName = corpName($victimCorpID);} else {$victimCorpName = null;}
108
+                if (isSet($victimCorpID)) {$victimCorpName = corpName($victimCorpID); } else {$victimCorpName = null; }
109 109
                 $shipName = $kill['package']['killmail']['victim']['shipType']['name'];
110 110
                 $totalValue = number_format($kill['zkb']['totalValue']);
111 111
                 // Check if it's a structure
Please login to merge, or discard this patch.
src/plugins/onTick/getKillmailsOld.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 //            $i = 0;
116 116
             if (isset($kills)) {
117 117
                 foreach ($kills as $kill) {
118
- //                   if ($i < 10) {
118
+    //                   if ($i < 10) {
119 119
                         //if big kill isn't set, disable it
120 120
                         if (!array_key_exists('bigKill', $kmGroup)) {
121 121
                             $kmGroup['bigKill'] = 99999999999999999999999999;
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         if (isset($kills)) {
202 202
             foreach ($kills as $kill) {
203 203
                 $cacheID = getPermCache('bigKillNewestKillmailID');
204
- //               if ($i < 10) {
204
+    //               if ($i < 10) {
205 205
                     $killID = $kill['killID'];
206 206
                     //check if mail is old
207 207
                     if ((int)$killID <= (int)$oldID) {
Please login to merge, or discard this 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.