@@ -165,7 +165,7 @@ |
||
| 165 | 165 | */ |
| 166 | 166 | private function getPossibleFiles(string $name): array |
| 167 | 167 | { |
| 168 | - return \array_map(function ($extension) use ($name): string { |
|
| 168 | + return \array_map(function($extension) use ($name): string { |
|
| 169 | 169 | //Cutting extra symbols (see Twig) |
| 170 | 170 | return \preg_replace( |
| 171 | 171 | '#/{2,}#', |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | */ |
| 370 | 370 | protected function initializeEscapers(): void |
| 371 | 371 | { |
| 372 | - $flags = \ENT_QUOTES | \ENT_SUBSTITUTE; |
|
| 372 | + $flags = \ENT_QUOTES|\ENT_SUBSTITUTE; |
|
| 373 | 373 | |
| 374 | 374 | $this->escapers = [ |
| 375 | 375 | 'html' => |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | * |
| 381 | 381 | * @return string the escaped value |
| 382 | 382 | */ |
| 383 | - function ($value) use ($flags) { |
|
| 383 | + function($value) use ($flags) { |
|
| 384 | 384 | // Numbers and Boolean values get turned into strings which can cause problems |
| 385 | 385 | // with type comparisons (e.g. === or is_int() etc). |
| 386 | 386 | return \is_string($value) ? \htmlspecialchars($value, $flags, $this->getCharset(), false) : $value; |
@@ -395,12 +395,12 @@ discard block |
||
| 395 | 395 | * |
| 396 | 396 | * @return string the escaped value |
| 397 | 397 | */ |
| 398 | - function ($value) { |
|
| 398 | + function($value) { |
|
| 399 | 399 | if ('UTF-8' != $this->getCharset()) { |
| 400 | 400 | $value = \iconv($this->getCharset(), 'UTF-8', $value); |
| 401 | 401 | } |
| 402 | 402 | |
| 403 | - $callback = function ($matches): string { |
|
| 403 | + $callback = function($matches): string { |
|
| 404 | 404 | $char = $matches[0]; |
| 405 | 405 | |
| 406 | 406 | // \xHH |