Passed
Pull Request — master (#139)
by Bob
02:41
created
src/lib/eveApi.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     if (null === $character) { // Make sure it's always set.
106 106
         return null;
107 107
     }
108
-    return (string)$character['name'];
108
+    return (string) $character['name'];
109 109
 }
110 110
 
111 111
 /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     try {
124 124
         $json = file_get_contents($url);
125 125
         $data = json_decode($json, TRUE);
126
-        $id = (int)$data['character'][0];
126
+        $id = (int) $data['character'][0];
127 127
 
128 128
     } catch (Exception $e) {
129 129
         $logger->error('EVE ESI Error: ' . $e->getMessage());
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
     try {
171 171
         $json = file_get_contents($url);
172 172
         $data = json_decode($json, TRUE);
173
-        $name = (string)$data['solar_system_name'];
173
+        $name = (string) $data['solar_system_name'];
174 174
 
175 175
     } catch (Exception $e) {
176 176
         $logger->error('EVE ESI Error: ' . $e->getMessage());
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     try {
196 196
         $json = file_get_contents($url);
197 197
         $data = json_decode($json, TRUE);
198
-        $id = (int)$data['corporation'][0];
198
+        $id = (int) $data['corporation'][0];
199 199
 
200 200
     } catch (Exception $e) {
201 201
         $logger->error('EVE ESI Error: ' . $e->getMessage());
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 function corpName($corpID)
215 215
 {
216 216
     $corporation = corpDetails($corpID);
217
-    $name = (string)$corporation['corporation_name'];
217
+    $name = (string) $corporation['corporation_name'];
218 218
 
219 219
     if (null === $corporation) { // Make sure it's always set.
220 220
         return null;
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     $url = "https://esi.tech.ccp.is/latest/alliances/{$allianceID}/";
257 257
     $json = file_get_contents($url);
258 258
     $data = json_decode($json, TRUE);
259
-    $name = (string)$data['alliance_name'];
259
+    $name = (string) $data['alliance_name'];
260 260
 
261 261
     if (null === $name) { // Make sure it's always set.
262 262
         $name = 'Unknown';
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
     $url = "https://esi.tech.ccp.is/latest/search/?search={$systemName}&categories=solarsystem&language=en-us&strict=true&datasource=tranquility";
277 277
     $json = file_get_contents($url);
278 278
     $data = json_decode($json, TRUE);
279
-    $id = (int)$data['solarsystem'][0];
279
+    $id = (int) $data['solarsystem'][0];
280 280
 
281 281
     if (null === $id) { // Make sure it's always set.
282 282
         $id = 'Unknown';
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     $url = "https://esi.tech.ccp.is/latest/universe/types/{$typeID}/";
296 296
     $json = file_get_contents($url);
297 297
     $data = json_decode($json, TRUE);
298
-    $name = (string)$data['type_name'];
298
+    $name = (string) $data['type_name'];
299 299
 
300 300
     if (null === $name) { // Make sure it's always set.
301 301
         $name = 'Unknown';
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     $url = "https://www.fuzzwork.co.uk/api/typeid.php?typename={$typeName}";
316 316
     $json = file_get_contents($url);
317 317
     $data = json_decode($json, TRUE);
318
-    $id = (int)$data['typeID'];
318
+    $id = (int) $data['typeID'];
319 319
 
320 320
     if (null === $id) { // Make sure it's always set.
321 321
         $id = 'Unknown';
Please login to merge, or discard this patch.