Passed
Push — master ( 22ef42...012447 )
by Malte
02:48
created
src/IMAP/Message.php 1 patch
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.