@@ -46,11 +46,12 @@ discard block |
||
| 46 | 46 | ]; |
| 47 | 47 | |
| 48 | 48 | $response = json_decode(self::$client->getResult($params)->getBody()->getContents(), true); |
| 49 | - if ($response['request_stats']['query_status'] == "success") |
|
| 50 | - if ($raw === true) |
|
| 49 | + if ($response['request_stats']['query_status'] == "success") { |
|
| 50 | + if ($raw === true) |
|
| 51 | 51 | return $response; |
| 52 | - else |
|
| 53 | - return self::fillModel($profileType, $response['data']); |
|
| 52 | + } else { |
|
| 53 | + return self::fillModel($profileType, $response['data']); |
|
| 54 | + } |
|
| 54 | 55 | |
| 55 | 56 | return false; |
| 56 | 57 | } |
@@ -60,8 +61,9 @@ discard block |
||
| 60 | 61 | */ |
| 61 | 62 | private static function setupClient() |
| 62 | 63 | { |
| 63 | - if (static::$client === false) |
|
| 64 | - static::$client = new StarCitizensClient(); |
|
| 64 | + if (static::$client === false) { |
|
| 65 | + static::$client = new StarCitizensClient(); |
|
| 66 | + } |
|
| 65 | 67 | } |
| 66 | 68 | |
| 67 | 69 | /** |