Completed
Push — master ( 74245b...092dfe )
by Malte
04:47 queued 11s
created
src/IMAP/Folder.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
         $this->setDelimiter($structure->delimiter);
121 121
         $this->path      = $structure->name;
122
-        $this->full_name  = $this->decodeName($structure->name);
122
+        $this->full_name = $this->decodeName($structure->name);
123 123
         $this->name      = $this->getSimpleName($this->delimiter, $this->full_name);
124 124
 
125 125
         $this->parseAttributes($structure->attributes);
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      * @return WhereQuery
133 133
      * @throws Exceptions\ConnectionFailedException
134 134
      */
135
-    public function query($charset = 'UTF-8'){
135
+    public function query($charset = 'UTF-8') {
136 136
         $this->getClient()->checkConnection();
137 137
         $this->getClient()->openFolder($this->path);
138 138
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      * @inheritdoc self::query($charset = 'UTF-8')
144 144
      * @throws Exceptions\ConnectionFailedException
145 145
      */
146
-    public function search($charset = 'UTF-8'){
146
+    public function search($charset = 'UTF-8') {
147 147
         return $this->query($charset);
148 148
     }
149 149
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      * @inheritdoc self::query($charset = 'UTF-8')
152 152
      * @throws Exceptions\ConnectionFailedException
153 153
      */
154
-    public function messages($charset = 'UTF-8'){
154
+    public function messages($charset = 'UTF-8') {
155 155
         return $this->query($charset);
156 156
     }
157 157
 
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
      * @deprecated 1.2.1:2.0.0 No longer needed. Use Folder::query() instead
317 317
      * @see Folder::query()
318 318
      */
319
-    public function searchMessages(array $where, $fetch_options = null, $fetch_body = true,  $fetch_attachment = true, $fetch_flags = true, $limit = null, $page = 1, $charset = "UTF-8") {
319
+    public function searchMessages(array $where, $fetch_options = null, $fetch_body = true, $fetch_attachment = true, $fetch_flags = true, $limit = null, $page = 1, $charset = "UTF-8") {
320 320
         $this->getClient()->checkConnection();
321 321
 
322 322
         return $this->query($charset)->where($where)->setFetchOptions($fetch_options)->setFetchBody($fetch_body)
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
      */
376 376
     public function delete($expunge = true) {
377 377
         $status = imap_deletemailbox($this->client->getConnection(), $this->path);
378
-        if($expunge) $this->client->expunge();
378
+        if ($expunge) $this->client->expunge();
379 379
 
380 380
         return $status;
381 381
     }
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
      */
393 393
     public function move($target_mailbox, $expunge = true) {
394 394
         $status = imap_renamemailbox($this->client->getConnection(), $this->path, $target_mailbox);
395
-        if($expunge) $this->client->expunge();
395
+        if ($expunge) $this->client->expunge();
396 396
 
397 397
         return $status;
398 398
     }
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
          */
434 434
 
435 435
         if ($internal_date != null) {
436
-            if ($internal_date instanceof \Carbon\Carbon){
436
+            if ($internal_date instanceof \Carbon\Carbon) {
437 437
                 $internal_date = $internal_date->format('d-M-Y H:i:s O');
438 438
             }
439 439
             return imap_append($this->client->getConnection(), $this->path, $message, $options, $internal_date);
@@ -454,8 +454,8 @@  discard block
 block discarded – undo
454 454
     /**
455 455
      * @param $delimiter
456 456
      */
457
-    public function setDelimiter($delimiter){
458
-        if(in_array($delimiter, [null, '', ' ', false]) === true) {
457
+    public function setDelimiter($delimiter) {
458
+        if (in_array($delimiter, [null, '', ' ', false]) === true) {
459 459
             $delimiter = config('imap.options.delimiter', '/');
460 460
         }
461 461
 
Please login to merge, or discard this patch.