@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | */ |
| 265 | 265 | try { |
| 266 | 266 | $this->date = Carbon::parse($date); |
| 267 | - } catch(\Exception $e) { |
|
| 267 | + } catch (\Exception $e) { |
|
| 268 | 268 | switch (true) { |
| 269 | 269 | case preg_match('/([A-Z]{2,3}\,\ [0-9]{1,2}\ [A-Z]{2,3}\ [0-9]{4}\ [0-9]{1,2}\:[0-9]{1,2}\:[0-9]{1,2}\ \+[0-9]{4}\ \([A-Z]{2,3}\+[0-9]{1,2}\:[0-9]{1,2})\)+$/i', $date) > 0: |
| 270 | 270 | $array = explode('(', $date); |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | } |
| 308 | 308 | if (property_exists($header, 'Msgno')) { |
| 309 | 309 | $this->message_no = ($this->fetch_options == FT_UID) ? trim($header->Msgno) : imap_msgno($this->client->getConnection(), trim($header->Msgno)); |
| 310 | - } else{ |
|
| 310 | + } else { |
|
| 311 | 311 | $this->message_no = imap_msgno($this->client->getConnection(), $this->getUid()); |
| 312 | 312 | } |
| 313 | 313 | } |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | public function setFetchOption($option) { |
| 466 | 466 | if (is_long($option) == true) { |
| 467 | 467 | $this->fetch_options = $option; |
| 468 | - } elseif(is_null($option) == true) { |
|
| 468 | + } elseif (is_null($option) == true) { |
|
| 469 | 469 | $config = config('imap.options.fetch', FT_UID); |
| 470 | 470 | $this->fetch_options = is_long($config) ? $config : 1; |
| 471 | 471 | } |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | public function setFetchAttachment($option) { |
| 483 | 483 | if (is_bool($option) == true) { |
| 484 | 484 | $this->fetch_attachment = $option; |
| 485 | - } elseif(is_null($option) == true) { |
|
| 485 | + } elseif (is_null($option) == true) { |
|
| 486 | 486 | $config = config('imap.options.attachments', false); |
| 487 | 487 | $this->fetch_attachment = is_bool($config) ? $config : false; |
| 488 | 488 | } |