@@ -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) { |