@@ -91,7 +91,9 @@ discard block |
||
91 | 91 | $this->setClient($client); |
92 | 92 | |
93 | 93 | $this->sequence = ClientManager::get('options.sequence', IMAP::ST_MSGN); |
94 | - if (ClientManager::get('options.fetch') === IMAP::FT_PEEK) $this->leaveUnread(); |
|
94 | + if (ClientManager::get('options.fetch') === IMAP::FT_PEEK) { |
|
95 | + $this->leaveUnread(); |
|
96 | + } |
|
95 | 97 | |
96 | 98 | if (ClientManager::get('options.fetch_order') === 'desc') { |
97 | 99 | $this->fetch_order = 'desc'; |
@@ -137,7 +139,9 @@ discard block |
||
137 | 139 | * @throws MessageSearchValidationException |
138 | 140 | */ |
139 | 141 | protected function parse_date($date) { |
140 | - if ($date instanceof Carbon) return $date; |
|
142 | + if ($date instanceof Carbon) { |
|
143 | + return $date; |
|
144 | + } |
|
141 | 145 | |
142 | 146 | try { |
143 | 147 | $date = Carbon::parse($date); |
@@ -287,15 +291,15 @@ discard block |
||
287 | 291 | } |
288 | 292 | $messages->put("$key", $message); |
289 | 293 | $msglist++; |
290 | - }catch (MessageNotFoundException $e) { |
|
294 | + } catch (MessageNotFoundException $e) { |
|
291 | 295 | $this->setError($uid, $e); |
292 | - }catch (RuntimeException $e) { |
|
296 | + } catch (RuntimeException $e) { |
|
293 | 297 | $this->setError($uid, $e); |
294 | - }catch (MessageFlagException $e) { |
|
298 | + } catch (MessageFlagException $e) { |
|
295 | 299 | $this->setError($uid, $e); |
296 | - }catch (InvalidMessageDateException $e) { |
|
300 | + } catch (InvalidMessageDateException $e) { |
|
297 | 301 | $this->setError($uid, $e); |
298 | - }catch (MessageContentFetchingException $e) { |
|
302 | + } catch (MessageContentFetchingException $e) { |
|
299 | 303 | $this->setError($uid, $e); |
300 | 304 | } |
301 | 305 | |
@@ -492,7 +496,9 @@ discard block |
||
492 | 496 | * @return $this |
493 | 497 | */ |
494 | 498 | public function limit($limit, $page = 1) { |
495 | - if ($page >= 1) $this->page = $page; |
|
499 | + if ($page >= 1) { |
|
500 | + $this->page = $page; |
|
501 | + } |
|
496 | 502 | $this->limit = $limit; |
497 | 503 | |
498 | 504 | return $this; |