Completed
Pull Request — master (#12)
by
unknown
02:19
created
src/Part.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -152,10 +152,10 @@  discard block
 block discarded – undo
152 152
      *
153 153
      * @throws InvalidMessageDateException
154 154
      */
155
-    protected function parse(){
155
+    protected function parse() {
156 156
         if ($this->header === null) {
157 157
             $body = $this->findHeaders();
158
-        }else{
158
+        }else {
159 159
             $body = $this->raw;
160 160
         }
161 161
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * @return string
180 180
      * @throws InvalidMessageDateException
181 181
      */
182
-    private function findHeaders(){
182
+    private function findHeaders() {
183 183
         $body = $this->raw;
184 184
         while (($pos = strpos($body, "\r\n")) > 0) {
185 185
             $body = substr($body, $pos + 2);
@@ -195,9 +195,9 @@  discard block
 block discarded – undo
195 195
     /**
196 196
      * Try to parse the subtype if any is present
197 197
      */
198
-    private function parseSubtype(){
198
+    private function parseSubtype() {
199 199
         $content_type = $this->header->get("content-type");
200
-        if (($pos = strpos($content_type, "/")) !== false){
200
+        if (($pos = strpos($content_type, "/")) !== false) {
201 201
             $this->subtype = substr($content_type, $pos + 1);
202 202
         }
203 203
     }
@@ -205,9 +205,9 @@  discard block
 block discarded – undo
205 205
     /**
206 206
      * Try to parse the disposition if any is present
207 207
      */
208
-    private function parseDisposition(){
208
+    private function parseDisposition() {
209 209
         $content_disposition = $this->header->get("content-disposition");
210
-        if($content_disposition !== null) {
210
+        if ($content_disposition !== null) {
211 211
             $this->ifdisposition = true;
212 212
             $this->disposition = $content_disposition;
213 213
         }
@@ -216,9 +216,9 @@  discard block
 block discarded – undo
216 216
     /**
217 217
      * Try to parse the description if any is present
218 218
      */
219
-    private function parseDescription(){
219
+    private function parseDescription() {
220 220
         $content_description = $this->header->get("content-description");
221
-        if($content_description !== null) {
221
+        if ($content_description !== null) {
222 222
             $this->ifdescription = true;
223 223
             $this->description = $content_description;
224 224
         }
@@ -227,9 +227,9 @@  discard block
 block discarded – undo
227 227
     /**
228 228
      * Try to parse the encoding if any is present
229 229
      */
230
-    private function parseEncoding(){
230
+    private function parseEncoding() {
231 231
         $encoding = $this->header->get("content-transfer-encoding");
232
-        if($encoding !== null) {
232
+        if ($encoding !== null) {
233 233
             switch (strtolower($encoding)) {
234 234
                 case "quoted-printable":
235 235
                     $this->encoding = IMAP::MESSAGE_ENC_QUOTED_PRINTABLE;
Please login to merge, or discard this patch.