@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | * @return WhereQuery |
| 132 | 132 | * @throws Exceptions\ConnectionFailedException |
| 133 | 133 | */ |
| 134 | - public function query($charset = 'UTF-8'){ |
|
| 134 | + public function query($charset = 'UTF-8') { |
|
| 135 | 135 | $this->getClient()->checkConnection(); |
| 136 | 136 | $this->getClient()->openFolder($this); |
| 137 | 137 | |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * @inheritdoc self::query($charset = 'UTF-8') |
| 143 | 143 | * @throws Exceptions\ConnectionFailedException |
| 144 | 144 | */ |
| 145 | - public function search($charset = 'UTF-8'){ |
|
| 145 | + public function search($charset = 'UTF-8') { |
|
| 146 | 146 | return $this->query($charset); |
| 147 | 147 | } |
| 148 | 148 | |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | * @inheritdoc self::query($charset = 'UTF-8') |
| 151 | 151 | * @throws Exceptions\ConnectionFailedException |
| 152 | 152 | */ |
| 153 | - public function messages($charset = 'UTF-8'){ |
|
| 153 | + public function messages($charset = 'UTF-8') { |
|
| 154 | 154 | return $this->query($charset); |
| 155 | 155 | } |
| 156 | 156 | |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | * @deprecated 1.2.1:2.0.0 No longer needed. Use Folder::query() instead |
| 318 | 318 | * @see Folder::query() |
| 319 | 319 | */ |
| 320 | - public function searchMessages(array $where, $fetch_options = null, $fetch_body = true, $fetch_attachment = true, $fetch_flags = true, $limit = null, $page = 1, $charset = "UTF-8") { |
|
| 320 | + public function searchMessages(array $where, $fetch_options = null, $fetch_body = true, $fetch_attachment = true, $fetch_flags = true, $limit = null, $page = 1, $charset = "UTF-8") { |
|
| 321 | 321 | $this->getClient()->checkConnection(); |
| 322 | 322 | |
| 323 | 323 | return $this->query($charset)->where($where)->setFetchOptions($fetch_options)->setFetchBody($fetch_body) |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | */ |
| 377 | 377 | public function delete($expunge = true) { |
| 378 | 378 | $status = imap_deletemailbox($this->client->getConnection(), $this->path); |
| 379 | - if($expunge) $this->client->expunge(); |
|
| 379 | + if ($expunge) $this->client->expunge(); |
|
| 380 | 380 | |
| 381 | 381 | return $status; |
| 382 | 382 | } |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | */ |
| 394 | 394 | public function move($target_mailbox, $expunge = true) { |
| 395 | 395 | $status = imap_renamemailbox($this->client->getConnection(), $this->path, $target_mailbox); |
| 396 | - if($expunge) $this->client->expunge(); |
|
| 396 | + if ($expunge) $this->client->expunge(); |
|
| 397 | 397 | |
| 398 | 398 | return $status; |
| 399 | 399 | } |
@@ -442,8 +442,8 @@ discard block |
||
| 442 | 442 | /** |
| 443 | 443 | * @param $delimiter |
| 444 | 444 | */ |
| 445 | - public function setDelimiter($delimiter){ |
|
| 446 | - if(in_array($delimiter, [null, '', ' ', false]) === true) { |
|
| 445 | + public function setDelimiter($delimiter) { |
|
| 446 | + if (in_array($delimiter, [null, '', ' ', false]) === true) { |
|
| 447 | 447 | $delimiter = config('imap.options.delimiter', '/'); |
| 448 | 448 | } |
| 449 | 449 | |