Passed
Pull Request — master (#184)
by
unknown
02:54
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.