Passed
Push — master ( 42c825...47f6d8 )
by Malte
02:48
created
src/IMAP/Message.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         $this->msglist = $msglist;
185 185
         $this->client = $client;
186 186
 
187
-        $this->uid =  ($this->fetch_options == FT_UID) ? $uid : $uid;
187
+        $this->uid = ($this->fetch_options == FT_UID) ? $uid : $uid;
188 188
         $this->msgn = ($this->fetch_options == FT_UID) ? imap_msgno($this->client->getConnection(), $uid) : $uid;
189 189
 
190 190
         $this->parseHeader();
@@ -288,9 +288,9 @@  discard block
 block discarded – undo
288 288
             $header = imap_rfc822_parse_headers($this->header);
289 289
         }
290 290
 
291
-        if(preg_match('/x\-priority\:.*([0-9]{1,2})/i', $this->header, $priority)){
291
+        if (preg_match('/x\-priority\:.*([0-9]{1,2})/i', $this->header, $priority)) {
292 292
             $priority = isset($priority[1]) ? (int) $priority[1] : 0;
293
-            switch($priority){
293
+            switch ($priority) {
294 294
                 case self::PRIORITY_HIGHEST;
295 295
                     $this->priority = self::PRIORITY_HIGHEST;
296 296
                     break;
@@ -473,12 +473,12 @@  discard block
 block discarded – undo
473 473
     public function parseBody() {
474 474
         $structure = imap_fetchstructure($this->client->getConnection(), $this->uid, FT_UID);
475 475
 
476
-        if(property_exists($structure, 'parts')){
476
+        if (property_exists($structure, 'parts')) {
477 477
             $parts = $structure->parts;
478 478
 
479
-            foreach ($parts as $part)  {
480
-                foreach ($part->parameters as $parameter)  {
481
-                    if($parameter->attribute == "charset")  {
479
+            foreach ($parts as $part) {
480
+                foreach ($part->parameters as $parameter) {
481
+                    if ($parameter->attribute == "charset") {
482 482
                         $encoding = $parameter->value;
483 483
                         $parameter->value = preg_replace('/Content-Transfer-Encoding/', '', $encoding);
484 484
                     }
@@ -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
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -710,7 +710,7 @@
 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
 
Please login to merge, or discard this patch.