Completed
Pull Request — master (#17)
by
unknown
02:09
created
src/MimeParser.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -163,6 +163,9 @@
 block discarded – undo
163 163
         return trim($row,"\r\n");
164 164
     }
165 165
 
166
+    /**
167
+     * @param resource $stream
168
+     */
166 169
     protected function parseParts($stream, array $part): array
167 170
     {
168 171
         while (!feof($stream)) {
Please login to merge, or discard this 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.