@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
54 | - * @param $id |
|
54 | + * @param string $id |
|
55 | 55 | * @param bool $cache |
56 | 56 | * @param bool $raw |
57 | 57 | * |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @param $id |
|
66 | + * @param string $id |
|
67 | 67 | * @param bool $cache |
68 | 68 | * @param bool $raw |
69 | 69 | * |
@@ -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 | /** |