@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | if (null === $character) { // Make sure it's always set. |
106 | 106 | return null; |
107 | 107 | } |
108 | - $name = (string)$character['name']; |
|
108 | + $name = (string) $character['name']; |
|
109 | 109 | |
110 | 110 | return $name; |
111 | 111 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | try { |
126 | 126 | $json = file_get_contents($url); |
127 | 127 | $data = json_decode($json, TRUE); |
128 | - $id = (int)$data['character'][0]; |
|
128 | + $id = (int) $data['character'][0]; |
|
129 | 129 | |
130 | 130 | } catch (Exception $e) { |
131 | 131 | $logger->error('EVE ESI Error: ' . $e->getMessage()); |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | try { |
173 | 173 | $json = file_get_contents($url); |
174 | 174 | $data = json_decode($json, TRUE); |
175 | - $name = (string)$data['solar_system_name']; |
|
175 | + $name = (string) $data['solar_system_name']; |
|
176 | 176 | |
177 | 177 | } catch (Exception $e) { |
178 | 178 | $logger->error('EVE ESI Error: ' . $e->getMessage()); |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | try { |
198 | 198 | $json = file_get_contents($url); |
199 | 199 | $data = json_decode($json, TRUE); |
200 | - $id = (int)$data['corporation'][0]; |
|
200 | + $id = (int) $data['corporation'][0]; |
|
201 | 201 | |
202 | 202 | } catch (Exception $e) { |
203 | 203 | $logger->error('EVE ESI Error: ' . $e->getMessage()); |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | function corpName($corpID) |
217 | 217 | { |
218 | 218 | $corporation = corpDetails($corpID); |
219 | - $name = (string)$corporation['corporation_name']; |
|
219 | + $name = (string) $corporation['corporation_name']; |
|
220 | 220 | |
221 | 221 | if (null === $corporation) { // Make sure it's always set. |
222 | 222 | return null; |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | $url = "https://esi.tech.ccp.is/latest/alliances/{$allianceID}/"; |
259 | 259 | $json = file_get_contents($url); |
260 | 260 | $data = json_decode($json, TRUE); |
261 | - $name = (string)$data['alliance_name']; |
|
261 | + $name = (string) $data['alliance_name']; |
|
262 | 262 | |
263 | 263 | if (null === $name) { // Make sure it's always set. |
264 | 264 | $name = 'Unknown'; |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | $url = "https://esi.tech.ccp.is/latest/search/?search={$systemName}&categories=solarsystem&language=en-us&strict=true&datasource=tranquility"; |
279 | 279 | $json = file_get_contents($url); |
280 | 280 | $data = json_decode($json, TRUE); |
281 | - $id = (int)$data['solarsystem'][0]; |
|
281 | + $id = (int) $data['solarsystem'][0]; |
|
282 | 282 | |
283 | 283 | if (null === $id) { // Make sure it's always set. |
284 | 284 | $id = 'Unknown'; |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | $url = "https://esi.tech.ccp.is/latest/universe/types/{$typeID}/"; |
298 | 298 | $json = file_get_contents($url); |
299 | 299 | $data = json_decode($json, TRUE); |
300 | - $name = (string)$data['type_name']; |
|
300 | + $name = (string) $data['type_name']; |
|
301 | 301 | |
302 | 302 | if (null === $name) { // Make sure it's always set. |
303 | 303 | $name = 'Unknown'; |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | $url = "https://www.fuzzwork.co.uk/api/typeid.php?typename={$typeName}"; |
318 | 318 | $json = file_get_contents($url); |
319 | 319 | $data = json_decode($json, TRUE); |
320 | - $id = (int)$data['typeID']; |
|
320 | + $id = (int) $data['typeID']; |
|
321 | 321 | |
322 | 322 | if (null === $id) { // Make sure it's always set. |
323 | 323 | $id = 'Unknown'; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | $siloID = $structures->attributes()->itemID; |
117 | 117 | $lastAmount = getPermCache("silo{$siloID}Amount"); |
118 | 118 | $gooAmount = $silo->attributes()->quantity; |
119 | - $gooDifference = (int)$gooAmount - (int)$lastAmount; |
|
119 | + $gooDifference = (int) $gooAmount - (int) $lastAmount; |
|
120 | 120 | //Check if silo has been checked before |
121 | 121 | if (null === $lastAmount || $gooDifference < 0) { |
122 | 122 | setPermCache("silo{$siloID}Amount", $gooAmount); |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | $couplingID = $structures->attributes()->itemID; |
149 | 149 | $lastAmount = getPermCache("couplingArray{$couplingID}Amount"); |
150 | 150 | $gooAmount = $coupling->attributes()->quantity; |
151 | - $gooDifference = (int)$gooAmount - (int)$lastAmount; |
|
151 | + $gooDifference = (int) $gooAmount - (int) $lastAmount; |
|
152 | 152 | //Check if silo has been checked before |
153 | 153 | if (null === $lastAmount || $gooDifference < 0) { |
154 | 154 | setPermCache("couplingArray{$couplingID}Amount", $gooAmount); |
@@ -80,7 +80,7 @@ |
||
80 | 80 | //Crest |
81 | 81 | $crestData = json_decode(downloadData('https://crest-tq.eveonline.com/'), true); |
82 | 82 | $crestStatus = isset($crestData['serviceStatus']) ? $crestData['serviceStatus'] : 'offline'; |
83 | - $tqOnline = (int)@$crestData['userCount']; |
|
83 | + $tqOnline = (int) @$crestData['userCount']; |
|
84 | 84 | |
85 | 85 | if ($lastStatus === $crestStatus) { |
86 | 86 | // No change |