@@ -154,8 +154,9 @@ discard block |
||
| 154 | 154 | */ |
| 155 | 155 | protected function threads() |
| 156 | 156 | { |
| 157 | - if ($this->threads === null) |
|
| 158 | - $this->threads = Accounts::findThreads($this->handle); |
|
| 157 | + if ($this->threads === null) { |
|
| 158 | + $this->threads = Accounts::findThreads($this->handle); |
|
| 159 | + } |
|
| 159 | 160 | |
| 160 | 161 | return $this->threads; |
| 161 | 162 | } |
@@ -165,8 +166,9 @@ discard block |
||
| 165 | 166 | */ |
| 166 | 167 | protected function posts() |
| 167 | 168 | { |
| 168 | - if ($this->posts === null) |
|
| 169 | - $this->posts = Accounts::findPosts($this->handle); |
|
| 169 | + if ($this->posts === null) { |
|
| 170 | + $this->posts = Accounts::findPosts($this->handle); |
|
| 171 | + } |
|
| 170 | 172 | |
| 171 | 173 | return $this->posts; |
| 172 | 174 | } |
@@ -178,8 +180,9 @@ discard block |
||
| 178 | 180 | */ |
| 179 | 181 | public function with(...$types) { |
| 180 | 182 | foreach ($types as $type) { |
| 181 | - if (method_exists($this, strtolower($type))) |
|
| 182 | - call_user_func([$this, $type]); |
|
| 183 | + if (method_exists($this, strtolower($type))) { |
|
| 184 | + call_user_func([$this, $type]); |
|
| 185 | + } |
|
| 183 | 186 | } |
| 184 | 187 | |
| 185 | 188 | return $this; |