@@ -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 | } |
@@ -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 | } |