@@ -6,6 +6,9 @@ discard block |
||
| 6 | 6 | { |
| 7 | 7 | public static $decodeWindows1252 = false; |
| 8 | 8 | |
| 9 | + /** |
|
| 10 | + * @param string $string |
|
| 11 | + */ |
|
| 9 | 12 | public function decode($string) |
| 10 | 13 | { |
| 11 | 14 | /* Take out any spaces between multiple encoded words. */ |
@@ -66,6 +69,11 @@ discard block |
||
| 66 | 69 | return $out . substr($string, $old_pos); |
| 67 | 70 | } |
| 68 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $str |
|
| 74 | + * @param string $orig |
|
| 75 | + * @param string $to |
|
| 76 | + */ |
|
| 69 | 77 | public static function convertCharset($str, $orig, $to) |
| 70 | 78 | { |
| 71 | 79 | //@todo convert charset |
@@ -42,10 +42,10 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * |
| 45 | - * @param stream $stream |
|
| 45 | + * @param resource $stream |
|
| 46 | 46 | * @param boolean $fillHeaders (default to false) |
| 47 | 47 | * @param \Swift_Mime_SimpleMimeEntity $message (default to null) |
| 48 | - * @return Swift_Mime_SimpleMimeEntity|\Swift_Message |
|
| 48 | + * @return \Swift_Mime_SimpleMimeEntity |
|
| 49 | 49 | */ |
| 50 | 50 | public function parseStream($stream, $fillHeaders = false, \Swift_Mime_SimpleMimeEntity $message = null) |
| 51 | 51 | { |
@@ -166,6 +166,9 @@ discard block |
||
| 166 | 166 | return $parts; |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | + /** |
|
| 170 | + * @return string |
|
| 171 | + */ |
|
| 169 | 172 | private function extractValueHeader($header) |
| 170 | 173 | { |
| 171 | 174 | $pos = stripos($header, ';'); |