@@ -67,11 +67,12 @@ |
||
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 | } |
@@ -25,7 +25,8 @@ |
||
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 |
@@ -30,8 +30,9 @@ discard block |
||
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 |
||
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 |
||
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 | /** |
@@ -25,7 +25,8 @@ |
||
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 |