@@ -105,7 +105,7 @@ |
||
| 105 | 105 | |
| 106 | 106 | $strValue = $ehloName; |
| 107 | 107 | if ($commentPart !== null && $this->matchHostPart($commentPart->getComment(), $hostname, $address)) { |
| 108 | - $strValue .= ' (' . $commentPart->getComment() . ')'; |
|
| 108 | + $strValue .= ' ('.$commentPart->getComment().')'; |
|
| 109 | 109 | $commentPart = null; |
| 110 | 110 | } |
| 111 | 111 | |
@@ -100,9 +100,9 @@ |
||
| 100 | 100 | foreach ($parts as $part) { |
| 101 | 101 | // order is important here - CommentPart extends LiteralPart |
| 102 | 102 | if ($part instanceof CommentPart) { |
| 103 | - $comment .= '(' . $part->getComment() . ')'; |
|
| 103 | + $comment .= '('.$part->getComment().')'; |
|
| 104 | 104 | } elseif ($part instanceof LiteralPart) { |
| 105 | - $comment .= '"' . \str_replace('(["\\])', '\$1', $part->getValue()) . '"'; |
|
| 105 | + $comment .= '"'.\str_replace('(["\\])', '\$1', $part->getValue()).'"'; |
|
| 106 | 106 | } else { |
| 107 | 107 | $comment .= $part->getValue(); |
| 108 | 108 | } |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | protected function getTokenSplitPattern() : string |
| 88 | 88 | { |
| 89 | 89 | $sChars = \implode('|', $this->getAllTokenSeparators()); |
| 90 | - return '~(' . $sChars . ')~'; |
|
| 90 | + return '~('.$sChars.')~'; |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | { |
| 53 | 53 | $sChars = \implode('|', $this->getAllTokenSeparators()); |
| 54 | 54 | $mimePartPattern = MimeLiteralPart::MIME_PART_PATTERN_NO_QUOTES; |
| 55 | - return '~(' . $mimePartPattern . '|\\\\.|' . $sChars . ')~'; |
|
| 55 | + return '~('.$mimePartPattern.'|\\\\.|'.$sChars.')~'; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | protected function getTokenSplitPattern() : string |
| 88 | 88 | { |
| 89 | 89 | $sChars = \implode('|', $this->getAllTokenSeparators()); |
| 90 | - return '~(' . $sChars . ')~'; |
|
| 90 | + return '~('.$sChars.')~'; |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
@@ -65,10 +65,10 @@ |
||
| 65 | 65 | */ |
| 66 | 66 | protected function processParts(array $parts) : array |
| 67 | 67 | { |
| 68 | - $id = \array_reduce(\array_filter($parts), function ($c, $p) { |
|
| 69 | - return $c . $p->getValue(); |
|
| 68 | + $id = \array_reduce(\array_filter($parts), function($c, $p) { |
|
| 69 | + return $c.$p->getValue(); |
|
| 70 | 70 | }, ''); |
| 71 | - return array_merge([$this->partFactory->newLiteralPart($id)], \array_values(\array_filter($parts, function ($p) { |
|
| 71 | + return array_merge([$this->partFactory->newLiteralPart($id)], \array_values(\array_filter($parts, function($p) { |
|
| 72 | 72 | return ($p instanceof CommentPart); |
| 73 | 73 | }))); |
| 74 | 74 | } |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | } elseif ($part instanceof AddressPart) { |
| 114 | 114 | return [$this->partFactory->newAddressPart($strName, $part->getEmail())]; |
| 115 | 115 | } elseif ((($part instanceof LiteralPart) && !($part instanceof CommentPart)) && $part->getValue() !== '') { |
| 116 | - $strEmail .= '"' . \preg_replace('/(["\\\])/', '\\\$1', $part->getValue()) . '"'; |
|
| 116 | + $strEmail .= '"'.\preg_replace('/(["\\\])/', '\\\$1', $part->getValue()).'"'; |
|
| 117 | 117 | } else { |
| 118 | 118 | $strEmail .= \preg_replace('/\s+/', '', $part->getValue()); |
| 119 | 119 | } |
@@ -49,9 +49,9 @@ |
||
| 49 | 49 | public function getIds() : array |
| 50 | 50 | { |
| 51 | 51 | return \array_values(\array_map( |
| 52 | - function ($p) { |
|
| 52 | + function($p) { |
|
| 53 | 53 | return $p->getValue(); |
| 54 | - }, \array_filter($this->parts, function ($p) { |
|
| 54 | + }, \array_filter($this->parts, function($p) { |
|
| 55 | 55 | return !($p instanceof CommentPart); |
| 56 | 56 | }) |
| 57 | 57 | )); |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | } |
| 81 | 81 | return \array_values(\array_filter( |
| 82 | 82 | $this->errors, |
| 83 | - function ($e) use ($minPsrLevel) { |
|
| 83 | + function($e) use ($minPsrLevel) { |
|
| 84 | 84 | return $e->isPsrLevelGreaterOrEqualTo($minPsrLevel); |
| 85 | 85 | } |
| 86 | 86 | )); |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | public function getAllErrors(bool $validate = false, string $minPsrLevel = LogLevel::ERROR) : array |
| 95 | 95 | { |
| 96 | 96 | $arr = \array_values(\array_map( |
| 97 | - function ($e) use ($validate, $minPsrLevel) { |
|
| 97 | + function($e) use ($validate, $minPsrLevel) { |
|
| 98 | 98 | return $e->getAllErrors($validate, $minPsrLevel) ?? []; |
| 99 | 99 | }, |
| 100 | 100 | $this->getErrorBagChildren() |