@@ -45,7 +45,7 @@ |
||
45 | 45 | */ |
46 | 46 | protected function getNameFromParts(array $parts) : string |
47 | 47 | { |
48 | - return \array_reduce($this->filterIgnoredSpaces($parts), fn ($c, $p) => $c . $p->getValue(), ''); |
|
48 | + return \array_reduce($this->filterIgnoredSpaces($parts), fn ($c, $p) => $c.$p->getValue(), ''); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
@@ -64,7 +64,7 @@ |
||
64 | 64 | |
65 | 65 | $pattern = '~^(\[(IPv[64])?(?P<addr1>[a-f\d\.\:]+)\])?\s*(helo=)?(?P<name>[a-z0-9\-]+[a-z0-9\-\.]+)?\s*(\[(IPv[64])?(?P<addr2>[a-f\d\.\:]+)\])?$~i'; |
66 | 66 | if ($commentPart !== null && \preg_match($pattern, $commentPart->getComment(), $matches)) { |
67 | - $this->value .= ' (' . $commentPart->getComment() . ')'; |
|
67 | + $this->value .= ' ('.$commentPart->getComment().')'; |
|
68 | 68 | $this->hostname = (!empty($matches['name'])) ? $matches['name'] : null; |
69 | 69 | $this->address = (!empty($matches['addr1'])) ? $matches['addr1'] : ((!empty($matches['addr2'])) ? $matches['addr2'] : null); |
70 | 70 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | { |
51 | 51 | // handled differently from MimeLiteralPart's decoding which ignores |
52 | 52 | // whitespace between parts, etc... |
53 | - $matchp = '~(' . MimeToken::MIME_PART_PATTERN . ')~'; |
|
53 | + $matchp = '~('.MimeToken::MIME_PART_PATTERN.')~'; |
|
54 | 54 | $aMimeParts = \preg_split($matchp, $value, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); |
55 | 55 | $this->mimeEncodedParsedParts = \array_map([$this->mimeTokenPartFactory, 'newInstance'], $aMimeParts); |
56 | 56 | parent::parseHeaderValue( |
@@ -49,9 +49,9 @@ |
||
49 | 49 | return parent::getValueFromParts(\array_map( |
50 | 50 | function($p) use ($partFactory) { |
51 | 51 | if ($p instanceof CommentPart) { |
52 | - return $partFactory->newQuotedLiteralPart([$partFactory->newToken('(' . $p->getComment() . ')')]); |
|
52 | + return $partFactory->newQuotedLiteralPart([$partFactory->newToken('('.$p->getComment().')')]); |
|
53 | 53 | } elseif ($p instanceof QuotedLiteralPart) { |
54 | - return $partFactory->newQuotedLiteralPart([$partFactory->newToken('"' . \str_replace('(["\\])', '\$1', $p->getValue()) . '"')]); |
|
54 | + return $partFactory->newQuotedLiteralPart([$partFactory->newToken('"'.\str_replace('(["\\])', '\$1', $p->getValue()).'"')]); |
|
55 | 55 | } |
56 | 56 | return $p; |
57 | 57 | }, |
@@ -95,7 +95,7 @@ |
||
95 | 95 | */ |
96 | 96 | protected function getValueFromParts(array $parts) : string |
97 | 97 | { |
98 | - return \array_reduce($this->filterIgnoredSpaces($parts), fn ($c, $p) => $c . $p->getValue(), ''); |
|
98 | + return \array_reduce($this->filterIgnoredSpaces($parts), fn ($c, $p) => $c.$p->getValue(), ''); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
@@ -30,7 +30,7 @@ |
||
30 | 30 | if ($p instanceof AddressPart) { |
31 | 31 | return $p->getValue(); |
32 | 32 | } elseif ($p instanceof QuotedLiteralPart && $p->getValue() !== '') { |
33 | - return '"' . \preg_replace('/(["\\\])/', '\\\$1', $p->getValue()) . '"'; |
|
33 | + return '"'.\preg_replace('/(["\\\])/', '\\\$1', $p->getValue()).'"'; |
|
34 | 34 | } |
35 | 35 | return \preg_replace('/\s+/', '', $p->getValue()); |
36 | 36 | }, |
@@ -87,7 +87,7 @@ |
||
87 | 87 | if ($p instanceof ParameterPart && $p->getIndex() !== null) { |
88 | 88 | return [\strtolower($p->getName()) => [$p]]; |
89 | 89 | } |
90 | - return [';' . \spl_object_id($p) . ';' => [$p]]; |
|
90 | + return [';'.\spl_object_id($p).';' => [$p]]; |
|
91 | 91 | }, |
92 | 92 | $parts |
93 | 93 | )) |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * @var string the default definition file. |
61 | 61 | */ |
62 | - private const DEFAULT_DEFINITIONS_FILE = __DIR__ . '/di_config.php'; |
|
62 | + private const DEFAULT_DEFINITIONS_FILE = __DIR__.'/di_config.php'; |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * @var Container The instance's dependency injection container. |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | self::$globalContainer = null; |
112 | 112 | } |
113 | 113 | |
114 | - public static function addGlobalPhpDiContainerDefinition(array|string|DefinitionSource $phpDiConfig) : void |
|
114 | + public static function addGlobalPhpDiContainerDefinition(array | string | DefinitionSource $phpDiConfig) : void |
|
115 | 115 | { |
116 | 116 | self::$globalDefinitions[] = $phpDiConfig; |
117 | 117 | self::$globalContainer = null; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | */ |
167 | 167 | public function __construct( |
168 | 168 | ?LoggerInterface $logger = null, |
169 | - array|string|DefinitionSource|null $phpDiContainerConfig = null, |
|
169 | + array | string | DefinitionSource | null $phpDiContainerConfig = null, |
|
170 | 170 | bool $useGlobalDefinitions = true |
171 | 171 | ) { |
172 | 172 | if ($phpDiContainerConfig !== null || $logger !== null) { |
@@ -84,7 +84,7 @@ |
||
84 | 84 | { |
85 | 85 | $ret = parent::parseTokensIntoParts($tokens); |
86 | 86 | if ($ret === []) { |
87 | - return $this->processParts([]); |
|
87 | + return $this->processParts([]); |
|
88 | 88 | } |
89 | 89 | return $ret; |
90 | 90 | } |