Completed
Push — master ( c2be97...312fc5 )
by Stephen
02:08
created
src/Accounts/Accounts.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,11 +67,12 @@
 block discarded – undo
67 67
         ];
68 68
 
69 69
         $response = json_decode(self::$client->getResult($params)->getBody()->getContents(), true);
70
-        if ($response['request_stats']['query_status'] == "success")
71
-            if ($raw === true)
70
+        if ($response['request_stats']['query_status'] == "success") {
71
+                    if ($raw === true)
72 72
                 return $response;
73
-            else
74
-                return self::fillModel($profileType, $response['data']);
73
+        } else {
74
+                            return self::fillModel($profileType, $response['data']);
75
+            }
75 76
 
76 77
         return false;
77 78
     }
Please login to merge, or discard this patch.
src/Models/Posts.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@
 block discarded – undo
25 25
 
26 26
     public function offsetSet($offset, $value)
27 27
     {
28
-        if ($value instanceof Post)
29
-            parent::offsetSet($offset, $value);
28
+        if ($value instanceof Post) {
29
+                    parent::offsetSet($offset, $value);
30
+        }
30 31
     }
31 32
 }
32 33
\ No newline at end of file
Please login to merge, or discard this patch.
src/Models/Store.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,8 +30,9 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function offsetExists($offset)
32 32
     {
33
-        if (array_key_exists($offset, $this->items))
34
-            return true;
33
+        if (array_key_exists($offset, $this->items)) {
34
+                    return true;
35
+        }
35 36
 
36 37
         return false;
37 38
     }
@@ -43,8 +44,9 @@  discard block
 block discarded – undo
43 44
      */
44 45
     public function offsetGet($offset)
45 46
     {
46
-        if ($this->offsetExists($offset))
47
-            return $this->items[$offset];
47
+        if ($this->offsetExists($offset)) {
48
+                    return $this->items[$offset];
49
+        }
48 50
 
49 51
         return false;
50 52
     }
@@ -63,8 +65,9 @@  discard block
 block discarded – undo
63 65
      */
64 66
     public function offsetUnset($offset)
65 67
     {
66
-        if ($this->offsetExists($offset) && isset($this->items[$offset]))
67
-            unset ($this->items[$offset]);
68
+        if ($this->offsetExists($offset) && isset($this->items[$offset])) {
69
+                    unset ($this->items[$offset]);
70
+        }
68 71
     }
69 72
 
70 73
     /**
Please login to merge, or discard this patch.
src/Models/Threads.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@
 block discarded – undo
25 25
 
26 26
     public function offsetSet($offset, $value)
27 27
     {
28
-        if ($value instanceof Thread)
29
-            parent::offsetSet($offset, $value);
28
+        if ($value instanceof Thread) {
29
+                    parent::offsetSet($offset, $value);
30
+        }
30 31
     }
31 32
 }
32 33
\ No newline at end of file
Please login to merge, or discard this patch.