@@ -722,7 +722,7 @@ discard block |
||
722 | 722 | return EncodingAliases::get($parameter->value); |
723 | 723 | } |
724 | 724 | } |
725 | - }elseif (is_string($structure) === true){ |
|
725 | + } elseif (is_string($structure) === true){ |
|
726 | 726 | return mb_detect_encoding($structure); |
727 | 727 | } |
728 | 728 | |
@@ -792,7 +792,9 @@ discard block |
||
792 | 792 | */ |
793 | 793 | public function delete($expunge = true) { |
794 | 794 | $status = imap_delete($this->client->getConnection(), $this->uid, FT_UID); |
795 | - if($expunge) $this->client->expunge(); |
|
795 | + if($expunge) { |
|
796 | + $this->client->expunge(); |
|
797 | + } |
|
796 | 798 | |
797 | 799 | return $status; |
798 | 800 | } |
@@ -806,7 +808,9 @@ discard block |
||
806 | 808 | */ |
807 | 809 | public function restore($expunge = true) { |
808 | 810 | $status = imap_undelete($this->client->getConnection(), $this->uid, FT_UID); |
809 | - if($expunge) $this->client->expunge(); |
|
811 | + if($expunge) { |
|
812 | + $this->client->expunge(); |
|
813 | + } |
|
810 | 814 | |
811 | 815 | return $status; |
812 | 816 | } |