@@ -118,10 +118,10 @@ discard block |
||
| 118 | 118 | * |
| 119 | 119 | * @throws InvalidMessageDateException |
| 120 | 120 | */ |
| 121 | - protected function parse(){ |
|
| 121 | + protected function parse() { |
|
| 122 | 122 | if ($this->header === null) { |
| 123 | 123 | $body = $this->findHeaders(); |
| 124 | - }else{ |
|
| 124 | + }else { |
|
| 125 | 125 | $body = $this->raw; |
| 126 | 126 | } |
| 127 | 127 | |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | * @return string |
| 146 | 146 | * @throws InvalidMessageDateException |
| 147 | 147 | */ |
| 148 | - private function findHeaders(){ |
|
| 148 | + private function findHeaders() { |
|
| 149 | 149 | $body = $this->raw; |
| 150 | 150 | while (($pos = strpos($body, "\r\n")) > 0) { |
| 151 | 151 | $body = substr($body, $pos + 2); |
@@ -158,32 +158,32 @@ discard block |
||
| 158 | 158 | return (string) $body; |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | - private function parseSubtype(){ |
|
| 161 | + private function parseSubtype() { |
|
| 162 | 162 | $content_type = $this->header->get("content-type"); |
| 163 | - if (($pos = strpos($content_type, "/")) !== false){ |
|
| 163 | + if (($pos = strpos($content_type, "/")) !== false) { |
|
| 164 | 164 | $this->subtype = substr($content_type, $pos + 1); |
| 165 | 165 | } |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | - private function parseDisposition(){ |
|
| 168 | + private function parseDisposition() { |
|
| 169 | 169 | $content_disposition = $this->header->get("content-disposition"); |
| 170 | - if($content_disposition !== null) { |
|
| 170 | + if ($content_disposition !== null) { |
|
| 171 | 171 | $this->ifdisposition = true; |
| 172 | 172 | $this->disposition = $content_disposition; |
| 173 | 173 | } |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | - private function parseDescription(){ |
|
| 176 | + private function parseDescription() { |
|
| 177 | 177 | $content_description = $this->header->get("content-description"); |
| 178 | - if($content_description !== null) { |
|
| 178 | + if ($content_description !== null) { |
|
| 179 | 179 | $this->ifdescription = true; |
| 180 | 180 | $this->description = $content_description; |
| 181 | 181 | } |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | - private function parseEncoding(){ |
|
| 184 | + private function parseEncoding() { |
|
| 185 | 185 | $encoding = $this->header->get("content-transfer-encoding"); |
| 186 | - if($encoding !== null) { |
|
| 186 | + if ($encoding !== null) { |
|
| 187 | 187 | switch (strtolower($encoding)) { |
| 188 | 188 | case "quoted-printable": |
| 189 | 189 | $this->encoding = IMAP::MESSAGE_ENC_QUOTED_PRINTABLE; |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | protected function parse(){ |
| 122 | 122 | if ($this->header === null) { |
| 123 | 123 | $body = $this->findHeaders(); |
| 124 | - }else{ |
|
| 124 | + } else{ |
|
| 125 | 125 | $body = $this->raw; |
| 126 | 126 | } |
| 127 | 127 | |