@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | /** @psalm-api */ |
10 | 10 | class TemplateContext |
11 | 11 | { |
12 | - private const ESCAPE_FLAGS = ENT_QUOTES | ENT_SUBSTITUTE; |
|
12 | + private const ESCAPE_FLAGS = ENT_QUOTES|ENT_SUBSTITUTE; |
|
13 | 13 | private const ESCAPE_ENCODING = 'UTF-8'; |
14 | 14 | |
15 | 15 | /** |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | public function context(array $values = []): array |
34 | 34 | { |
35 | 35 | return array_map( |
36 | - function ($value): mixed { |
|
36 | + function($value): mixed { |
|
37 | 37 | if ($value instanceof ValueInterface) { |
38 | 38 | return $value; |
39 | 39 | } |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | { |
112 | 112 | $templateContext = $this->templateContext($context, $whitelist, $autoescape); |
113 | 113 | |
114 | - $load = function (string $templatePath, array $context = []): void { |
|
114 | + $load = function(string $templatePath, array $context = []): void { |
|
115 | 115 | // Hide $templatePath. Could be overwritten if $context['templatePath'] exists. |
116 | 116 | $____template_path____ = $templatePath; |
117 | 117 | |
@@ -131,8 +131,7 @@ discard block |
||
131 | 131 | $load( |
132 | 132 | $this->path, |
133 | 133 | $autoescape ? |
134 | - $templateContext->context() : |
|
135 | - $context |
|
134 | + $templateContext->context() : $context |
|
136 | 135 | ); |
137 | 136 | |
138 | 137 | $content = ob_get_clean(); |