@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | */ |
| 256 | 256 | try { |
| 257 | 257 | $this->date = Carbon::parse($date); |
| 258 | - } catch(\Exception $e) { |
|
| 258 | + } catch (\Exception $e) { |
|
| 259 | 259 | switch (true) { |
| 260 | 260 | 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: |
| 261 | 261 | $array = explode('(', $date); |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | } |
| 299 | 299 | if (property_exists($header, 'Msgno')) { |
| 300 | 300 | $this->message_no = ($this->fetch_options == FT_UID) ? trim($header->Msgno) : imap_msgno($this->client->getConnection(), trim($header->Msgno)); |
| 301 | - } else{ |
|
| 301 | + } else { |
|
| 302 | 302 | $this->message_no = imap_msgno($this->client->getConnection(), $this->getUid()); |
| 303 | 303 | } |
| 304 | 304 | } |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | public function setFetchOption($option) { |
| 455 | 455 | if (is_long($option) == true) { |
| 456 | 456 | $this->fetch_options = $option; |
| 457 | - } elseif(is_null($option) == true) { |
|
| 457 | + } elseif (is_null($option) == true) { |
|
| 458 | 458 | $config = config('imap.options.fetch', FT_UID); |
| 459 | 459 | $this->fetch_options = is_long($config) ? $config : 1; |
| 460 | 460 | } |