@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | protected $message; // rdx\imap\IMAPMessage |
14 | 14 | protected $skippedParts = []; // Array<stdClass> |
15 | 15 | |
16 | - public function __construct( IMAPMessage $message, $structure, array $section ) { |
|
16 | + public function __construct(IMAPMessage $message, $structure, array $section) { |
|
17 | 17 | $this->message = $message; |
18 | 18 | $this->structure = $structure; |
19 | 19 | $this->section = $section; |
@@ -23,14 +23,14 @@ discard block |
||
23 | 23 | } |
24 | 24 | |
25 | 25 | public function parts() { |
26 | - if ( empty($this->parts) && !empty($this->structure()->parts) ) { |
|
26 | + if (empty($this->parts) && !empty($this->structure()->parts)) { |
|
27 | 27 | $parts = $this->structure()->parts; |
28 | - while ( count($parts) == 1 && empty($parts[0]->bytes) && !empty($parts[0]->parts) ) { |
|
28 | + while (count($parts) == 1 && empty($parts[0]->bytes) && !empty($parts[0]->parts)) { |
|
29 | 29 | $this->skippedParts[] = $parts[0]; |
30 | 30 | $parts = $parts[0]->parts; |
31 | 31 | } |
32 | 32 | |
33 | - foreach ( $parts as $n => $part ) { |
|
33 | + foreach ($parts as $n => $part) { |
|
34 | 34 | $this->parts[] = $this->message()->createMessagePart( |
35 | 35 | $part, |
36 | 36 | array_merge($this->section(), [$n+1]) |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | return $this->decode($body); |
54 | 54 | } |
55 | 55 | |
56 | - public function decode( $content ) { |
|
56 | + public function decode($content) { |
|
57 | 57 | return quoted_printable_decode($content); |
58 | 58 | } |
59 | 59 |