Passed
Push — master ( d418f0...22ef42 )
by Malte
02:51
created
src/IMAP/Client.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -355,14 +355,14 @@
 block discarded – undo
355 355
         return $status;
356 356
     }
357 357
     
358
-     /**
359
-     * Delete Folder
360
-     * @param string $name
361
-      * @param boolean $expunge
362
-     *
363
-     * @return bool
364
-     * @throws ConnectionFailedException
365
-     */
358
+        /**
359
+         * Delete Folder
360
+         * @param string $name
361
+         * @param boolean $expunge
362
+         *
363
+         * @return bool
364
+         * @throws ConnectionFailedException
365
+         */
366 366
     public function deleteFolder($name, $expunge = true) {
367 367
         $this->checkConnection();
368 368
         $status = imap_deletemailbox($this->getConnection(), $this->getAddress() . imap_utf7_encode($name));
Please login to merge, or discard this patch.
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -333,7 +333,9 @@  discard block
 block discarded – undo
333 333
     public function createFolder($name, $expunge = true) {
334 334
         $this->checkConnection();
335 335
         $status = imap_createmailbox($this->getConnection(), $this->getAddress() . imap_utf7_encode($name));
336
-        if($expunge) $this->expunge();
336
+        if($expunge) {
337
+            $this->expunge();
338
+        }
337 339
 
338 340
         return $status;
339 341
     }
@@ -350,7 +352,9 @@  discard block
 block discarded – undo
350 352
     public function renameFolder($old_name, $new_name, $expunge = true) {
351 353
         $this->checkConnection();
352 354
         $status = imap_renamemailbox($this->getConnection(), $this->getAddress() . imap_utf7_encode($old_name), $this->getAddress() . imap_utf7_encode($new_name));
353
-        if($expunge) $this->expunge();
355
+        if($expunge) {
356
+            $this->expunge();
357
+        }
354 358
 
355 359
         return $status;
356 360
     }
@@ -366,7 +370,9 @@  discard block
 block discarded – undo
366 370
     public function deleteFolder($name, $expunge = true) {
367 371
         $this->checkConnection();
368 372
         $status = imap_deletemailbox($this->getConnection(), $this->getAddress() . imap_utf7_encode($name));
369
-        if($expunge) $this->expunge();
373
+        if($expunge) {
374
+            $this->expunge();
375
+        }
370 376
 
371 377
         return $status;
372 378
     }
Please login to merge, or discard this patch.
src/IMAP/Folder.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -370,7 +370,9 @@  discard block
 block discarded – undo
370 370
      */
371 371
     public function delete($expunge = true) {
372 372
         $status = imap_deletemailbox($this->client->getConnection(), $this->path);
373
-        if($expunge) $this->client->expunge();
373
+        if($expunge) {
374
+            $this->client->expunge();
375
+        }
374 376
 
375 377
         return $status;
376 378
     }
@@ -387,7 +389,9 @@  discard block
 block discarded – undo
387 389
      */
388 390
     public function move($target_mailbox, $expunge = true) {
389 391
         $status = imap_renamemailbox($this->client->getConnection(), $this->path, $target_mailbox);
390
-        if($expunge) $this->client->expunge();
392
+        if($expunge) {
393
+            $this->client->expunge();
394
+        }
391 395
 
392 396
         return $status;
393 397
     }
Please login to merge, or discard this patch.
src/IMAP/Message.php 1 patch
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
                     return strtoupper($parameter->value);
711 711
                 }
712 712
             }
713
-        }elseif (is_string($structure) === true){
713
+        } elseif (is_string($structure) === true){
714 714
             return mb_detect_encoding($structure);
715 715
         }
716 716
 
@@ -780,7 +780,9 @@  discard block
 block discarded – undo
780 780
      */
781 781
     public function delete($expunge = true) {
782 782
         $status = imap_delete($this->client->getConnection(), $this->uid, FT_UID);
783
-        if($expunge) $this->client->expunge();
783
+        if($expunge) {
784
+            $this->client->expunge();
785
+        }
784 786
 
785 787
         return $status;
786 788
     }
@@ -794,7 +796,9 @@  discard block
 block discarded – undo
794 796
      */
795 797
     public function restore($expunge = true) {
796 798
         $status = imap_undelete($this->client->getConnection(), $this->uid, FT_UID);
797
-        if($expunge) $this->client->expunge();
799
+        if($expunge) {
800
+            $this->client->expunge();
801
+        }
798 802
 
799 803
         return $status;
800 804
     }
Please login to merge, or discard this patch.