diff --git a/src/BeSimple/SoapCommon/Helper.php b/src/BeSimple/SoapCommon/Helper.php index 6d11b0f..58f9779 100644 --- a/src/BeSimple/SoapCommon/Helper.php +++ b/src/BeSimple/SoapCommon/Helper.php @@ -159,7 +159,7 @@ class Helper mt_rand(0, 0x3fff) | 0x8000, // 48 bits for "node" mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff) - ); + ); } /** diff --git a/src/BeSimple/SoapCommon/Mime/Parser.php b/src/BeSimple/SoapCommon/Mime/Parser.php index 7d98edf..ab41b97 100644 --- a/src/BeSimple/SoapCommon/Mime/Parser.php +++ b/src/BeSimple/SoapCommon/Mime/Parser.php @@ -50,8 +50,7 @@ class Parser $lines = preg_split("/\r\n|\n/", $mimeMessage); foreach ($lines as $line) { // ignore http status code and POST * - if ( substr( $line, 0, 5 ) == 'HTTP/' || substr( $line, 0, 4 ) == 'POST') - { + if (substr($line, 0, 5) == 'HTTP/' || substr($line, 0, 4) == 'POST') { continue; } if (isset($currentHeader)) { @@ -59,7 +58,7 @@ class Parser $currentHeader .= $line; continue; } - if (strpos($currentHeader,':') !== false) { + if (strpos($currentHeader, ':') !== false) { list($headerName, $headerValue) = explode(':', $currentHeader, 2); $headerValue = iconv_mime_decode($headerValue, 0, 'utf-8'); if (strpos($headerValue, ';') !== false) { @@ -129,7 +128,7 @@ class Parser * e.g. Content-Type: multipart/related; boundary=boundary; type=text/xml; * start="<123@abc>" * - * @see https://labs.omniti.com/alexandria/trunk/OmniTI/Mail/Parser.php + * Based on: https://labs.omniti.com/alexandria/trunk/OmniTI/Mail/Parser.php * * @param \BeSimple\SoapCommon\Mime\PartHeader $part Header part * @param string $headerName Header name diff --git a/src/BeSimple/SoapCommon/Mime/PartHeader.php b/src/BeSimple/SoapCommon/Mime/PartHeader.php index b6458cd..8e78bea 100644 --- a/src/BeSimple/SoapCommon/Mime/PartHeader.php +++ b/src/BeSimple/SoapCommon/Mime/PartHeader.php @@ -103,7 +103,7 @@ abstract class PartHeader /** * Generates a header field value from the given value paramater. * - * @param array(string=>string)|string $value + * @param array(string=>string)|string $value Header value * @return string */ protected function generateHeaderFieldValue($value) @@ -128,7 +128,7 @@ abstract class PartHeader * Quote string with '"' if it contains one of the special characters: * "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\" / <"> / "/" / "[" / "]" / "?" / "=" * - * @param string $string + * @param string $string String to quote * @return string */ private function quoteValueString($string)