Completed
Pull Request — master (#17)
by
unknown
02:09
created
src/MimeParser.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -157,8 +157,9 @@  discard block
 block discarded – undo
157 157
         if (!feof($stream)){
158 158
             $pos=ftell($stream);
159 159
             $row = fgets($stream);
160
-            if(!$auto_advance)
161
-                fseek($stream,$pos);
160
+            if(!$auto_advance) {
161
+                            fseek($stream,$pos);
162
+            }
162 163
         }
163 164
         return trim($row,"\r\n");
164 165
     }
@@ -208,8 +209,9 @@  discard block
 block discarded – undo
208 209
             }
209 210
         }
210 211
         //remove last newline ( part of boundary)
211
-        if(end($contents) =="")
212
-            array_pop($contents);
212
+        if(end($contents) =="") {
213
+                    array_pop($contents);
214
+        }
213 215
         return $this->contentDecoder->decode(implode(PHP_EOL, $contents), $encoding);
214 216
     }
215 217
 
Please login to merge, or discard this patch.