@@ -129,16 +129,16 @@ |
||
| 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']) { |
|
| 132 | + if ($rawValue < $kmGroup['minimumValue']) { |
|
| 133 | 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 | - } |
|
| 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']); |
@@ -89,16 +89,16 @@ |
||
| 89 | 89 | if ($kmGroup['startMail'] > $killID || null === $killID) { |
| 90 | 90 | $killID = $kmGroup['startMail']; |
| 91 | 91 | } |
| 92 | - if ((int)$kmGroup['allianceID'] === 0 & $kmGroup['lossMails'] === 'true') { |
|
| 92 | + if ((int) $kmGroup['allianceID'] === 0 & $kmGroup['lossMails'] === 'true') { |
|
| 93 | 93 | $url = "https://zkillboard.com/api/no-attackers/no-items/orderDirection/asc/afterKillID/{$killID}/corporationID/{$kmGroup['corpID']}/"; |
| 94 | 94 | } |
| 95 | - if ((int)$kmGroup['allianceID'] === 0 & $kmGroup['lossMails'] === 'false') { |
|
| 95 | + if ((int) $kmGroup['allianceID'] === 0 & $kmGroup['lossMails'] === 'false') { |
|
| 96 | 96 | $url = "https://zkillboard.com/api/no-attackers/no-items/kills/orderDirection/asc/afterKillID/{$killID}/corporationID/{$kmGroup['corpID']}/"; |
| 97 | 97 | } |
| 98 | - if ((int)$kmGroup['allianceID'] !== 0 & $kmGroup['lossMails'] === 'true') { |
|
| 98 | + if ((int) $kmGroup['allianceID'] !== 0 & $kmGroup['lossMails'] === 'true') { |
|
| 99 | 99 | $url = "https://zkillboard.com/api/no-attackers/no-items/orderDirection/asc/afterKillID/{$killID}/allianceID/{$kmGroup['allianceID']}/"; |
| 100 | 100 | } |
| 101 | - if ((int)$kmGroup['allianceID'] !== 0 & $kmGroup['lossMails'] === 'false') { |
|
| 101 | + if ((int) $kmGroup['allianceID'] !== 0 & $kmGroup['lossMails'] === 'false') { |
|
| 102 | 102 | $url = "https://zkillboard.com/api/no-attackers/no-items/kills/orderDirection/asc/afterKillID/{$killID}/allianceID/{$kmGroup['allianceID']}/"; |
| 103 | 103 | } |
| 104 | 104 | |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | } |
| 103 | 103 | foreach ($xml->result->rowset->row as $structures) { |
| 104 | 104 | //Check silos |
| 105 | - if ((int)$structures->attributes()->typeID === 14343) { |
|
| 105 | + if ((int) $structures->attributes()->typeID === 14343) { |
|
| 106 | 106 | if (isset($structures->rowset->row)) { |
| 107 | 107 | foreach ($structures->rowset->row as $silo) { |
| 108 | 108 | $moonGoo = $silo->attributes()->typeID; |