@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | ) { |
30 | 30 | parent::__construct( |
31 | 31 | $partFactory, |
32 | - [ $commentConsumerService, $quotedStringConsumerService ] |
|
32 | + [$commentConsumerService, $quotedStringConsumerService] |
|
33 | 33 | ); |
34 | 34 | } |
35 | 35 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | foreach ($parts as $p) { |
77 | 77 | $val = $p->getValue(); |
78 | 78 | if ((($p instanceof LiteralPart) && !($p instanceof CommentPart)) && $val !== '') { |
79 | - $val = '"' . \preg_replace('/(["\\\])/', '\\\$1', $val) . '"'; |
|
79 | + $val = '"'.\preg_replace('/(["\\\])/', '\\\$1', $val).'"'; |
|
80 | 80 | } else { |
81 | 81 | $val = \preg_replace('/\s+/', '', $val); |
82 | 82 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | HeaderPartFactory $partFactory, |
28 | 28 | AddressConsumerService $addressConsumerService |
29 | 29 | ) { |
30 | - parent::__construct($partFactory, [ $addressConsumerService ]); |
|
30 | + parent::__construct($partFactory, [$addressConsumerService]); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -59,12 +59,12 @@ discard block |
||
59 | 59 | |
60 | 60 | public function __invoke(string $value) : array |
61 | 61 | { |
62 | - $this->logger->debug('Starting ${class} for "${value}"', [ 'class' => static::class, 'value' => $value ]); |
|
62 | + $this->logger->debug('Starting ${class} for "${value}"', ['class' => static::class, 'value' => $value]); |
|
63 | 63 | if ($value !== '') { |
64 | 64 | $parts = $this->parseRawValue($value); |
65 | 65 | $this->logger->debug( |
66 | 66 | 'Ending ${class} for "${value}": parsed into ${cnt} header part objects', |
67 | - [ 'class' => static::class, 'value' => $value, 'cnt' => count($parts) ] |
|
67 | + ['class' => static::class, 'value' => $value, 'cnt' => count($parts)] |
|
68 | 68 | ); |
69 | 69 | return $parts; |
70 | 70 | } |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | { |
154 | 154 | $sChars = \implode('|', $this->getAllTokenSeparators()); |
155 | 155 | $mimePartPattern = MimeLiteralPart::MIME_PART_PATTERN; |
156 | - return '~(' . $mimePartPattern . '|\\\\.|' . $sChars . ')~'; |
|
156 | + return '~('.$mimePartPattern.'|\\\\.|'.$sChars.')~'; |
|
157 | 157 | } |
158 | 158 | |
159 | 159 | /** |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | $this->tokenSplitPattern = $this->getTokenSplitPattern(); |
173 | 173 | $this->logger->debug( |
174 | 174 | 'Configuring ${class} with token split pattern: ${pattern}', |
175 | - [ 'class' => static::class, 'pattern' => $this->tokenSplitPattern] |
|
175 | + ['class' => static::class, 'pattern' => $this->tokenSplitPattern] |
|
176 | 176 | ); |
177 | 177 | } |
178 | 178 | return \preg_split( |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | if ($consumer->isStartToken($token)) { |
245 | 245 | $this->logger->debug( |
246 | 246 | 'Token: "${value}" in ${class} starting sub-consumer ${consumer}', |
247 | - [ 'value' => $token, 'class' => static::class, 'consumer' => get_class($consumer) ] |
|
247 | + ['value' => $token, 'class' => static::class, 'consumer' => get_class($consumer)] |
|
248 | 248 | ); |
249 | 249 | $this->advanceToNextToken($tokens, true); |
250 | 250 | return $consumer->parseTokensIntoParts($tokens); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | protected function parseHeaderValue(IConsumerService $consumer, string $value) : void |
42 | 42 | { |
43 | - $matchp = '~' . MimeLiteralPart::MIME_PART_PATTERN . '~'; |
|
43 | + $matchp = '~'.MimeLiteralPart::MIME_PART_PATTERN.'~'; |
|
44 | 44 | $rep = \preg_replace_callback($matchp, function($matches) { |
45 | 45 | return $this->mimeLiteralPartFactory->newInstance($matches[0])->getValue(); |
46 | 46 | }, $value); |