Completed
Push — master ( 9ae690...ba1bd4 )
by Stephen
02:32
created
src/Accounts/Accounts.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
src/Base/StarCitizenAbstract.php 1 patch
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,11 +46,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.