@@ -58,7 +58,7 @@ |
||
58 | 58 | public function __construct(string $message, string $psrLogLevelAsErrorLevel, ErrorBag $object, ?Throwable $exception = null) |
59 | 59 | { |
60 | 60 | if (!isset($this->levelMap[$psrLogLevelAsErrorLevel])) { |
61 | - throw new InvalidArgumentException($psrLogLevelAsErrorLevel . ' is not a known PSR Log Level'); |
|
61 | + throw new InvalidArgumentException($psrLogLevelAsErrorLevel.' is not a known PSR Log Level'); |
|
62 | 62 | } |
63 | 63 | $this->message = $message; |
64 | 64 | $this->psrLevel = $psrLogLevelAsErrorLevel; |
@@ -237,12 +237,12 @@ |
||
237 | 237 | { |
238 | 238 | $params = ''; |
239 | 239 | if (!empty($this->getContentId())) { |
240 | - $params .= ', content-id=' . $this->getContentId(); |
|
240 | + $params .= ', content-id='.$this->getContentId(); |
|
241 | 241 | } |
242 | - $params .= ', content-type=' . $this->getContentType(); |
|
242 | + $params .= ', content-type='.$this->getContentType(); |
|
243 | 243 | $nsClass = static::class; |
244 | 244 | $class = \substr($nsClass, (\strrpos($nsClass, '\\') ?? -1) + 1); |
245 | - return $class . '(' . \spl_object_id($this) . $params . ')'; |
|
245 | + return $class.'('.\spl_object_id($this).$params.')'; |
|
246 | 246 | } |
247 | 247 | |
248 | 248 | protected function getErrorBagChildren() : array |
@@ -152,7 +152,7 @@ |
||
152 | 152 | |
153 | 153 | public function getErrorLoggingContextName() : string |
154 | 154 | { |
155 | - return 'Header::' . $this->getName(); |
|
155 | + return 'Header::'.$this->getName(); |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | protected function getErrorBagChildren() : array |
@@ -328,11 +328,11 @@ |
||
328 | 328 | { |
329 | 329 | $params = ''; |
330 | 330 | if (!empty($this->getMessageId())) { |
331 | - $params .= ', message-id=' . $this->getContentId(); |
|
331 | + $params .= ', message-id='.$this->getContentId(); |
|
332 | 332 | } |
333 | - $params .= ', content-type=' . $this->getContentType(); |
|
333 | + $params .= ', content-type='.$this->getContentType(); |
|
334 | 334 | $nsClass = static::class; |
335 | 335 | $class = \substr($nsClass, (\strrpos($nsClass, '\\') ?? -1) + 1); |
336 | - return $class . '(' . \spl_object_id($this) . $params . ')'; |
|
336 | + return $class.'('.\spl_object_id($this).$params.')'; |
|
337 | 337 | } |
338 | 338 | } |
@@ -53,8 +53,8 @@ |
||
53 | 53 | } catch (RuntimeException $e) { |
54 | 54 | throw new MessagePartStreamReadException( |
55 | 55 | $this->part, |
56 | - 'Exception occurred reading a part stream: cid=' . $this->part->getContentId() |
|
57 | - . ' type=' . $this->part->getContentType() . ', message: ' . $e->getMessage(), |
|
56 | + 'Exception occurred reading a part stream: cid='.$this->part->getContentId() |
|
57 | + . ' type='.$this->part->getContentType().', message: '.$e->getMessage(), |
|
58 | 58 | $e->getCode(), |
59 | 59 | $e |
60 | 60 | ); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | protected function getPartForToken(string $token, bool $isLiteral) : ?IHeaderPart |
27 | 27 | { |
28 | - if (!$isLiteral && \preg_match('/' . MimeToken::MIME_PART_PATTERN . '/', $token)) { |
|
28 | + if (!$isLiteral && \preg_match('/'.MimeToken::MIME_PART_PATTERN.'/', $token)) { |
|
29 | 29 | return $this->partFactory->newMimeToken($token); |
30 | 30 | } |
31 | 31 | return $this->partFactory->newToken($token, $isLiteral); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | protected function isStartToken(string $token) : bool |
69 | 69 | { |
70 | - $pattern = '/^' . \preg_quote($this->partName, '/') . '$/i'; |
|
70 | + $pattern = '/^'.\preg_quote($this->partName, '/').'$/i'; |
|
71 | 71 | return (\preg_match($pattern, $token) === 1); |
72 | 72 | } |
73 | 73 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | { |
99 | 99 | return [ |
100 | 100 | '\s+', |
101 | - '(\A\s*|\s+)(?i)' . \preg_quote($this->partName, '/') . '(?-i)(?=\s+)' |
|
101 | + '(\A\s*|\s+)(?i)'.\preg_quote($this->partName, '/').'(?-i)(?=\s+)' |
|
102 | 102 | ]; |
103 | 103 | } |
104 | 104 |
@@ -31,6 +31,6 @@ |
||
31 | 31 | { |
32 | 32 | $sChars = \implode('|', $this->getAllTokenSeparators()); |
33 | 33 | $mimePartPattern = MimeToken::MIME_PART_PATTERN_NO_QUOTES; |
34 | - return '~(' . $mimePartPattern . '|\\\\\r\n|\\\\.|' . $sChars . ')~ms'; |
|
34 | + return '~('.$mimePartPattern.'|\\\\\r\n|\\\\.|'.$sChars.')~ms'; |
|
35 | 35 | } |
36 | 36 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | protected function getPartForToken(string $token, bool $isLiteral) : ?IHeaderPart |
41 | 41 | { |
42 | - if (\preg_match('/' . MimeToken::MIME_PART_PATTERN . '/', $token)) { |
|
42 | + if (\preg_match('/'.MimeToken::MIME_PART_PATTERN.'/', $token)) { |
|
43 | 43 | return $this->partFactory->newMimeToken($token); |
44 | 44 | } |
45 | 45 | return $this->partFactory->newSubjectToken($token); |