Completed
Push — master ( 849c1c...c2be97 )
by Stephen
02:16
created
src/Base/StarCitizenAbstract.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,9 @@
 block discarded – undo
22 22
      */
23 23
     private static function setupClient()
24 24
     {
25
-        if (static::$client === false)
26
-            static::$client = new StarCitizensClient();
25
+        if (static::$client === false) {
26
+                    static::$client = new StarCitizensClient();
27
+        }
27 28
     }
28 29
 
29 30
     /**
Please login to merge, or discard this patch.
src/Accounts/Accounts.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,11 +66,12 @@
 block discarded – undo
66 66
         ];
67 67
 
68 68
         $response = json_decode(self::$client->getResult($params)->getBody()->getContents(), true);
69
-        if ($response['request_stats']['query_status'] == "success")
70
-            if ($raw === true)
69
+        if ($response['request_stats']['query_status'] == "success") {
70
+                    if ($raw === true)
71 71
                 return $response;
72
-            else
73
-                return Accounts::fillModel($profileType, $response['data']);
72
+        } else {
73
+                            return Accounts::fillModel($profileType, $response['data']);
74
+            }
74 75
 
75 76
         return false;
76 77
     }
Please login to merge, or discard this patch.
src/Models/Threads.php 1 patch
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -46,8 +46,9 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function offsetExists($offset)
48 48
     {
49
-        if (array_key_exists($offset, $this->threads))
50
-            return true;
49
+        if (array_key_exists($offset, $this->threads)) {
50
+                    return true;
51
+        }
51 52
 
52 53
         return false;
53 54
     }
@@ -59,8 +60,9 @@  discard block
 block discarded – undo
59 60
      */
60 61
     public function offsetGet($offset)
61 62
     {
62
-        if ($this->offsetExists($offset))
63
-            return $this->threads[$offset];
63
+        if ($this->offsetExists($offset)) {
64
+                    return $this->threads[$offset];
65
+        }
64 66
 
65 67
         return false;
66 68
     }
@@ -71,8 +73,9 @@  discard block
 block discarded – undo
71 73
      */
72 74
     public function offsetSet($offset, $value)
73 75
     {
74
-        if ($value instanceof Thread)
75
-            $this->threads[$offset] = $value;
76
+        if ($value instanceof Thread) {
77
+                    $this->threads[$offset] = $value;
78
+        }
76 79
     }
77 80
 
78 81
     /**
@@ -80,8 +83,9 @@  discard block
 block discarded – undo
80 83
      */
81 84
     public function offsetUnset($offset)
82 85
     {
83
-        if ($this->offsetExists($offset) && isset($this->threads[$offset]))
84
-            unset ($this->threads[$offset]);
86
+        if ($this->offsetExists($offset) && isset($this->threads[$offset])) {
87
+                    unset ($this->threads[$offset]);
88
+        }
85 89
     }
86 90
 
87 91
     /**
Please login to merge, or discard this patch.