Completed
Pull Request — master (#128)
by
unknown
03:26
created
src/IMAP/Client.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      *
114 114
      * @var array $validConfigKeys
115 115
      */
116
-    protected $validConfigKeys = ['host', 'port', 'encryption', 'validate_cert', 'username', 'password','protocol'];
116
+    protected $validConfigKeys = ['host', 'port', 'encryption', 'validate_cert', 'username', 'password', 'protocol'];
117 117
 
118 118
     /**
119 119
      * Client constructor.
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
      */
331 331
     public function createFolder($name) {
332 332
         $this->checkConnection();
333
-        return imap_createmailbox($this->connection, $this->getAddress() . imap_utf7_encode($name));
333
+        return imap_createmailbox($this->connection, $this->getAddress().imap_utf7_encode($name));
334 334
     }
335 335
     
336 336
     /**
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
      */
344 344
     public function renameFolder($old_name, $new_name) {
345 345
         $this->checkConnection();
346
-        return imap_renamemailbox($this->connection, $this->getAddress() . imap_utf7_encode($old_name), $this->getAddress() . imap_utf7_encode($new_name));
346
+        return imap_renamemailbox($this->connection, $this->getAddress().imap_utf7_encode($old_name), $this->getAddress().imap_utf7_encode($new_name));
347 347
     }
348 348
     
349 349
      /**
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
      */
356 356
     public function deleteFolder($name) {
357 357
         $this->checkConnection();
358
-        return imap_deletemailbox($this->connection, $this->getAddress() . imap_utf7_encode($name));
358
+        return imap_deletemailbox($this->connection, $this->getAddress().imap_utf7_encode($name));
359 359
     }
360 360
 
361 361
     /**
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
         if (!$this->validate_cert) {
444 444
             $address .= '/novalidate-cert';
445 445
         }
446
-        if (in_array($this->encryption,['tls','ssl'])) {
446
+        if (in_array($this->encryption, ['tls', 'ssl'])) {
447 447
             $address .= '/'.$this->encryption;
448 448
         }
449 449
         $address .= '}';
Please login to merge, or discard this patch.