Skip to content

Commit

Permalink
Improve Code Quality
Browse files Browse the repository at this point in the history
  • Loading branch information
eXorus committed May 3, 2015
1 parent d6013e2 commit 2082496
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ class Parser
*/
public $data;

/**
* Parts of an email
*/
public $parts;

/**
* Charset managemer object
*/
Expand Down Expand Up @@ -326,8 +331,6 @@ private function getAttachmentStream(&$part)
fseek($this->stream, $start, SEEK_SET);
$len = $end-$start;
$written = 0;
$write = 2028;
$body = '';
while ($written < $len) {
$write = $len;
$part = fread($this->stream, $write);
Expand Down Expand Up @@ -367,7 +370,7 @@ private function decodeContentTransfer($encodedString, $encodingType)

/**
* $input can be a string or array
* @param string,array $input
* @param string|array $input
* @return string
*/
private function decodeHeader($input)
Expand Down Expand Up @@ -411,7 +414,7 @@ private function decodeHeader($input)

/**
* Return the charset of the MIME part
* @return String
* @return String|false
* @param $part Array
*/
private function getPartCharset($part)
Expand All @@ -431,7 +434,7 @@ private function getPartCharset($part)

/**
* Retrieve a specified MIME part
* @return String or Array
* @return String|Array
* @param $type String, $parts Array
*/
private function getPart($type, $parts)
Expand Down

0 comments on commit 2082496

Please sign in to comment.