@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $this->groupConfig = $config["plugins"]["getKillmails"]["groupConfig"]; |
| 70 | 70 | $this->guild = $config["bot"]["guild"]; |
| 71 | 71 | //Refresh check at bot start |
| 72 | - setPermCache("killmailCheck", time() - 5); |
|
| 72 | + setPermCache("killmailCheck", time() - 5); |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | function getKM() |
| 116 | 116 | { |
| 117 | - foreach($this->groupConfig as $kmGroup) { |
|
| 117 | + foreach ($this->groupConfig as $kmGroup) { |
|
| 118 | 118 | $lastMail = getPermCache("{$kmGroup["name"]}newestKillmailID"); |
| 119 | 119 | //check if start id is greater than current id and if it is set |
| 120 | 120 | if ($kmGroup["startMail"] > $lastMail || is_null($lastMail)) { |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | foreach ($kills as $kill) { |
| 145 | 145 | if ($i < 10) { |
| 146 | 146 | //if big kill isn't set, disable it |
| 147 | - if (is_null($kmGroup["bigKill"])){ |
|
| 147 | + if (is_null($kmGroup["bigKill"])) { |
|
| 148 | 148 | $kmGroup["bigKill"] = 99999999999999999999999999; |
| 149 | 149 | } |
| 150 | 150 | $killID = $kill['killID']; |
@@ -159,8 +159,8 @@ discard block |
||
| 159 | 159 | $shipName = apiTypeName($victimShipID); |
| 160 | 160 | $rawValue = $kill['zkb']['totalValue']; |
| 161 | 161 | //Check if killmail meets minimum value |
| 162 | - if (isset($kmGroup["minimumValue"])){ |
|
| 163 | - if ($rawValue < $kmGroup["minimumValue"]){ |
|
| 162 | + if (isset($kmGroup["minimumValue"])) { |
|
| 163 | + if ($rawValue < $kmGroup["minimumValue"]) { |
|
| 164 | 164 | $this->logger->addInfo("Killmails: Mail {$killID} ignored for not meeting the minimum value required."); |
| 165 | 165 | setPermCache("{$kmGroup["name"]}newestKillmailID", $killID); |
| 166 | 166 | continue; |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | function getBigKM() |
| 204 | 204 | { |
| 205 | 205 | $lastMail = getPermCache("bigKillNewestKillmailID"); |
| 206 | - if (is_null($lastMail)){ |
|
| 206 | + if (is_null($lastMail)) { |
|
| 207 | 207 | $lastMail = $this->config["plugins"]["getKillmails"]["bigKills"]["bigKillStartID"]; |
| 208 | 208 | } |
| 209 | 209 | |