@@ -84,7 +84,9 @@ discard block |
||
84 | 84 | $this->setClient($client); |
85 | 85 | |
86 | 86 | $this->sequence = ClientManager::get('options.sequence', IMAP::ST_MSGN); |
87 | - if (ClientManager::get('options.fetch') === IMAP::FT_PEEK) $this->leaveUnread(); |
|
87 | + if (ClientManager::get('options.fetch') === IMAP::FT_PEEK) { |
|
88 | + $this->leaveUnread(); |
|
89 | + } |
|
88 | 90 | |
89 | 91 | if (ClientManager::get('options.fetch_order') === 'desc') { |
90 | 92 | $this->fetch_order = 'desc'; |
@@ -129,7 +131,9 @@ discard block |
||
129 | 131 | * @throws MessageSearchValidationException |
130 | 132 | */ |
131 | 133 | protected function parse_date($date) { |
132 | - if ($date instanceof Carbon) return $date; |
|
134 | + if ($date instanceof Carbon) { |
|
135 | + return $date; |
|
136 | + } |
|
133 | 137 | |
134 | 138 | try { |
135 | 139 | $date = Carbon::parse($date); |
@@ -363,7 +367,7 @@ discard block |
||
363 | 367 | } else { |
364 | 368 | if($statement[1] === null){ |
365 | 369 | $query .= $statement[0]; |
366 | - }else{ |
|
370 | + } else{ |
|
367 | 371 | $query .= $statement[0].' "'.$statement[1].'"'; |
368 | 372 | } |
369 | 373 | } |
@@ -393,7 +397,9 @@ discard block |
||
393 | 397 | * @return $this |
394 | 398 | */ |
395 | 399 | public function limit($limit, $page = 1) { |
396 | - if ($page >= 1) $this->page = $page; |
|
400 | + if ($page >= 1) { |
|
401 | + $this->page = $page; |
|
402 | + } |
|
397 | 403 | $this->limit = $limit; |
398 | 404 | |
399 | 405 | return $this; |
@@ -152,7 +152,9 @@ discard block |
||
152 | 152 | */ |
153 | 153 | public function orWhere(Closure $closure = null) { |
154 | 154 | $this->query->push(['OR']); |
155 | - if ($closure !== null) $closure($this); |
|
155 | + if ($closure !== null) { |
|
156 | + $closure($this); |
|
157 | + } |
|
156 | 158 | |
157 | 159 | return $this; |
158 | 160 | } |
@@ -164,7 +166,9 @@ discard block |
||
164 | 166 | */ |
165 | 167 | public function andWhere(Closure $closure = null) { |
166 | 168 | $this->query->push(['AND']); |
167 | - if ($closure !== null) $closure($this); |
|
169 | + if ($closure !== null) { |
|
170 | + $closure($this); |
|
171 | + } |
|
168 | 172 | |
169 | 173 | return $this; |
170 | 174 | } |