CS fixes
This commit is contained in:
parent
e0049c906d
commit
da344ad03f
|
@ -50,8 +50,7 @@ class Parser
|
||||||
$lines = preg_split("/\r\n|\n/", $mimeMessage);
|
$lines = preg_split("/\r\n|\n/", $mimeMessage);
|
||||||
foreach ($lines as $line) {
|
foreach ($lines as $line) {
|
||||||
// ignore http status code and POST *
|
// 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;
|
continue;
|
||||||
}
|
}
|
||||||
if (isset($currentHeader)) {
|
if (isset($currentHeader)) {
|
||||||
|
@ -129,7 +128,7 @@ class Parser
|
||||||
* e.g. Content-Type: multipart/related; boundary=boundary; type=text/xml;
|
* e.g. Content-Type: multipart/related; boundary=boundary; type=text/xml;
|
||||||
* start="<123@abc>"
|
* 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 \BeSimple\SoapCommon\Mime\PartHeader $part Header part
|
||||||
* @param string $headerName Header name
|
* @param string $headerName Header name
|
||||||
|
|
|
@ -103,7 +103,7 @@ abstract class PartHeader
|
||||||
/**
|
/**
|
||||||
* Generates a header field value from the given value paramater.
|
* 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
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function generateHeaderFieldValue($value)
|
protected function generateHeaderFieldValue($value)
|
||||||
|
@ -128,7 +128,7 @@ abstract class PartHeader
|
||||||
* Quote string with '"' if it contains one of the special characters:
|
* Quote string with '"' if it contains one of the special characters:
|
||||||
* "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\" / <"> / "/" / "[" / "]" / "?" / "="
|
* "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\" / <"> / "/" / "[" / "]" / "?" / "="
|
||||||
*
|
*
|
||||||
* @param string $string
|
* @param string $string String to quote
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function quoteValueString($string)
|
private function quoteValueString($string)
|
||||||
|
|
Loading…
Reference in New Issue