@@ -63,6 +63,6 @@ |
||
| 63 | 63 | protected function getTokenSplitPattern() |
| 64 | 64 | { |
| 65 | 65 | $sChars = implode('|', $this->getAllTokenSeparators()); |
| 66 | - return '~(' . $sChars . ')~'; |
|
| 66 | + return '~('.$sChars.')~'; |
|
| 67 | 67 | } |
| 68 | 68 | } |
@@ -158,8 +158,8 @@ |
||
| 158 | 158 | ksort($parts); |
| 159 | 159 | return array_reduce( |
| 160 | 160 | $parts, |
| 161 | - function ($carry, $item) { |
|
| 162 | - return $carry . $item; |
|
| 161 | + function($carry, $item) { |
|
| 162 | + return $carry.$item; |
|
| 163 | 163 | }, |
| 164 | 164 | '' |
| 165 | 165 | ); |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | protected function getTokenSplitPattern() |
| 89 | 89 | { |
| 90 | 90 | $sChars = implode('|', $this->getAllTokenSeparators()); |
| 91 | - return '~(' . $sChars . ')~'; |
|
| 91 | + return '~('.$sChars.')~'; |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | $strValue = $ehloName; |
| 111 | 111 | if ($commentPart !== null && $this->matchHostPart($commentPart->getComment(), $hostname, $address)) { |
| 112 | - $strValue .= ' (' . $commentPart->getComment() . ')'; |
|
| 112 | + $strValue .= ' ('.$commentPart->getComment().')'; |
|
| 113 | 113 | $commentPart = null; |
| 114 | 114 | } |
| 115 | 115 | |
@@ -120,6 +120,6 @@ discard block |
||
| 120 | 120 | $hostname, |
| 121 | 121 | $address |
| 122 | 122 | ); |
| 123 | - return array_filter([ $domainPart, $commentPart ]); |
|
| 123 | + return array_filter([$domainPart, $commentPart]); |
|
| 124 | 124 | } |
| 125 | 125 | } |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | */ |
| 97 | 97 | protected function processParts(array $parts) |
| 98 | 98 | { |
| 99 | - return array_values(array_filter($parts, function ($part) { |
|
| 99 | + return array_values(array_filter($parts, function($part) { |
|
| 100 | 100 | if (empty($part) || $part instanceof CommentPart) { |
| 101 | 101 | return false; |
| 102 | 102 | } |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | { |
| 47 | 47 | $sChars = implode('|', $this->getAllTokenSeparators()); |
| 48 | 48 | $mimePartPattern = MimeLiteralPart::MIME_PART_PATTERN_NO_QUOTES; |
| 49 | - return '~(' . $mimePartPattern . '|\\\\.|' . $sChars . ')~'; |
|
| 49 | + return '~('.$mimePartPattern.'|\\\\.|'.$sChars.')~'; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | * @param int $index |
| 83 | 83 | * @param boolean $isEncoded |
| 84 | 84 | * @return SplitParameterToken |
| 85 | - */ |
|
| 85 | + */ |
|
| 86 | 86 | private function addToSplitPart(ArrayObject $splitParts, $name, $value, $index, $isEncoded) |
| 87 | 87 | { |
| 88 | 88 | $ret = null; |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | protected function getSubConsumers() |
| 78 | 78 | { |
| 79 | - return [ $this->consumerService->getCommentConsumer() ]; |
|
| 79 | + return [$this->consumerService->getCommentConsumer()]; |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | protected function isStartToken($token) |
| 90 | 90 | { |
| 91 | - $pattern = '/^\s*(' . preg_quote($this->getPartName(), '/') . ')\s*$/i'; |
|
| 91 | + $pattern = '/^\s*('.preg_quote($this->getPartName(), '/').')\s*$/i'; |
|
| 92 | 92 | return (preg_match($pattern, $token) === 1); |
| 93 | 93 | } |
| 94 | 94 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | { |
| 124 | 124 | return [ |
| 125 | 125 | '\s+', |
| 126 | - '(\A\s*)?(?i)' . preg_quote($this->getPartName(), '/') . '(?-i)\s+' |
|
| 126 | + '(\A\s*)?(?i)'.preg_quote($this->getPartName(), '/').'(?-i)\s+' |
|
| 127 | 127 | ]; |
| 128 | 128 | } |
| 129 | 129 | |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | foreach ($filtered as $part) { |
| 146 | 146 | if ($part instanceof CommentPart) { |
| 147 | 147 | $ret[] = $part; |
| 148 | - continue; // getValue() is empty anyway, but for clarity... |
|
| 148 | + continue; // getValue() is empty anyway, but for clarity... |
|
| 149 | 149 | } |
| 150 | 150 | $strValue .= $part->getValue(); |
| 151 | 151 | } |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | protected function setParseHeaderValue(AbstractConsumer $consumer) |
| 55 | 55 | { |
| 56 | 56 | $value = $this->rawValue; |
| 57 | - $matchp = '~^(\s*' . MimeLiteralPart::MIME_PART_PATTERN . '\s*)+$~'; |
|
| 57 | + $matchp = '~^(\s*'.MimeLiteralPart::MIME_PART_PATTERN.'\s*)+$~'; |
|
| 58 | 58 | if (preg_match($matchp, $value)) { |
| 59 | 59 | $p = $this->mimeLiteralPartFactory->newInstance($value); |
| 60 | 60 | $value = $p->getValue(); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $dateToken = preg_replace('# ([0-9]{4})$#', ' +$1', $dateToken); |
| 43 | 43 | // @see https://bugs.php.net/bug.php?id=42486 |
| 44 | 44 | } elseif (preg_match('#UT$#', $dateToken)) { |
| 45 | - $dateToken = $dateToken . 'C'; |
|
| 45 | + $dateToken = $dateToken.'C'; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | try { |