@@ -272,7 +272,7 @@ |
||
| 272 | 272 | foreach($where as $statement){ |
| 273 | 273 | if(count($statement) == 1){ |
| 274 | 274 | $query .= $statement[0]; |
| 275 | - }else{ |
|
| 275 | + } else{ |
|
| 276 | 276 | $query .= $statement[0].' "'.$statement[1].'"'; |
| 277 | 277 | } |
| 278 | 278 | } |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | */ |
| 255 | 255 | try{ |
| 256 | 256 | $this->date = Carbon::parse($date); |
| 257 | - }catch(\Exception $e){ |
|
| 257 | + } catch(\Exception $e){ |
|
| 258 | 258 | switch(true){ |
| 259 | 259 | 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): |
| 260 | 260 | $array = explode('(', $date); |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | } |
| 295 | 295 | if (property_exists($header, 'Msgno')) { |
| 296 | 296 | $this->message_no = ($this->fetch_options == FT_UID) ? trim($header->Msgno) : imap_msgno($this->client->getConnection(), trim($header->Msgno)); |
| 297 | - }else{ |
|
| 297 | + } else{ |
|
| 298 | 298 | $this->message_no = imap_msgno($this->client->getConnection(), $this->getUid()); |
| 299 | 299 | } |
| 300 | 300 | } |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | public function setFetchOption($option){ |
| 451 | 451 | if(is_long($option) == true){ |
| 452 | 452 | $this->fetch_options = $option; |
| 453 | - }elseif(is_null($option) == true){ |
|
| 453 | + } elseif(is_null($option) == true){ |
|
| 454 | 454 | $config = config('imap.options.fetch', FT_UID); |
| 455 | 455 | $this->fetch_options = is_long($config) ? $config : 1; |
| 456 | 456 | } |