|
@@ -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']); |