@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | function characterName($characterID) |
| 102 | 102 | { |
| 103 | 103 | $character = characterDetails($characterID); |
| 104 | - $name = (string)$character['name']; |
|
| 104 | + $name = (string) $character['name']; |
|
| 105 | 105 | if (null === $name || '' === $name) { // Make sure it's always set. |
| 106 | 106 | $url = "https://api.eveonline.com/eve/CharacterName.xml.aspx?ids={$characterID}"; |
| 107 | 107 | $xml = makeApiRequest($url); |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | try { |
| 128 | 128 | $json = file_get_contents($url); |
| 129 | 129 | $data = json_decode($json, TRUE); |
| 130 | - $id = (int)$data['character'][0]; |
|
| 130 | + $id = (int) $data['character'][0]; |
|
| 131 | 131 | |
| 132 | 132 | } catch (Exception $e) { |
| 133 | 133 | $logger->error('EVE ESI Error: ' . $e->getMessage()); |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | try { |
| 179 | 179 | $json = file_get_contents($url); |
| 180 | 180 | $data = json_decode($json, TRUE); |
| 181 | - $name = (string)$data['solar_system_name']; |
|
| 181 | + $name = (string) $data['solar_system_name']; |
|
| 182 | 182 | |
| 183 | 183 | } catch (Exception $e) { |
| 184 | 184 | $logger->error('EVE ESI Error: ' . $e->getMessage()); |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | try { |
| 208 | 208 | $json = file_get_contents($url); |
| 209 | 209 | $data = json_decode($json, TRUE); |
| 210 | - $id = (int)$data['corporation'][0]; |
|
| 210 | + $id = (int) $data['corporation'][0]; |
|
| 211 | 211 | |
| 212 | 212 | } catch (Exception $e) { |
| 213 | 213 | $logger->error('EVE ESI Error: ' . $e->getMessage()); |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | function corpName($corpID) |
| 231 | 231 | { |
| 232 | 232 | $corporation = corpDetails($corpID); |
| 233 | - $name = (string)$corporation['corporation_name']; |
|
| 233 | + $name = (string) $corporation['corporation_name']; |
|
| 234 | 234 | if (null === $name || '' === $name) { // Make sure it's always set. |
| 235 | 235 | $url = "https://api.eveonline.com/eve/CharacterName.xml.aspx?ids={$corpID}"; |
| 236 | 236 | $xml = makeApiRequest($url); |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | try { |
| 278 | 278 | $json = file_get_contents($url); |
| 279 | 279 | $data = json_decode($json, TRUE); |
| 280 | - $name = (string)$data['alliance_name']; |
|
| 280 | + $name = (string) $data['alliance_name']; |
|
| 281 | 281 | |
| 282 | 282 | } catch (Exception $e) { |
| 283 | 283 | $url = "https://api.eveonline.com/eve/CharacterName.xml.aspx?ids={$allianceID}"; |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | try { |
| 304 | 304 | $json = file_get_contents($url); |
| 305 | 305 | $data = json_decode($json, TRUE); |
| 306 | - $id = (int)$data['solarsystem'][0]; |
|
| 306 | + $id = (int) $data['solarsystem'][0]; |
|
| 307 | 307 | |
| 308 | 308 | } catch (Exception $e) { |
| 309 | 309 | $logger->error('EVE ESI Error: ' . $e->getMessage()); |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | try { |
| 330 | 330 | $json = file_get_contents($url); |
| 331 | 331 | $data = json_decode($json, TRUE); |
| 332 | - $name = (string)$data['type_name']; |
|
| 332 | + $name = (string) $data['type_name']; |
|
| 333 | 333 | |
| 334 | 334 | } catch (Exception $e) { |
| 335 | 335 | $logger->error('EVE ESI Error: ' . $e->getMessage()); |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | $url = "https://www.fuzzwork.co.uk/api/typeid.php?typename={$typeName}"; |
| 355 | 355 | $json = file_get_contents($url); |
| 356 | 356 | $data = json_decode($json, TRUE); |
| 357 | - $id = (int)$data['typeID']; |
|
| 357 | + $id = (int) $data['typeID']; |
|
| 358 | 358 | |
| 359 | 359 | if (null === $id) { // Make sure it's always set. |
| 360 | 360 | $id = 'Unknown'; |