@@ -76,7 +76,9 @@ discard block |
||
76 | 76 | public function __construct(Client $client, $charset = 'UTF-8') { |
77 | 77 | $this->setClient($client); |
78 | 78 | |
79 | - if(ClientManager::get('options.fetch') === IMAP::FT_PEEK) $this->leaveUnread(); |
|
79 | + if(ClientManager::get('options.fetch') === IMAP::FT_PEEK) { |
|
80 | + $this->leaveUnread(); |
|
81 | + } |
|
80 | 82 | |
81 | 83 | if (ClientManager::get('options.fetch_order') === 'desc') { |
82 | 84 | $this->fetch_order = 'desc'; |
@@ -120,7 +122,9 @@ discard block |
||
120 | 122 | * @throws MessageSearchValidationException |
121 | 123 | */ |
122 | 124 | protected function parse_date($date) { |
123 | - if($date instanceof \Carbon\Carbon) return $date; |
|
125 | + if($date instanceof \Carbon\Carbon) { |
|
126 | + return $date; |
|
127 | + } |
|
124 | 128 | |
125 | 129 | try { |
126 | 130 | $date = Carbon::parse($date); |
@@ -287,7 +291,7 @@ discard block |
||
287 | 291 | } else { |
288 | 292 | if($statement[1] === null){ |
289 | 293 | $query .= $statement[0]; |
290 | - }else{ |
|
294 | + } else{ |
|
291 | 295 | $query .= $statement[0].' "'.$statement[1].'"'; |
292 | 296 | } |
293 | 297 | } |
@@ -317,7 +321,9 @@ discard block |
||
317 | 321 | * @return $this |
318 | 322 | */ |
319 | 323 | public function limit($limit, $page = 1) { |
320 | - if($page >= 1) $this->page = $page; |
|
324 | + if($page >= 1) { |
|
325 | + $this->page = $page; |
|
326 | + } |
|
321 | 327 | $this->limit = $limit; |
322 | 328 | |
323 | 329 | return $this; |