@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * @inheritDoc |
| 35 | 35 | */ |
| 36 | - public function __construct(array|string $config) |
|
| 36 | + public function __construct(array | string $config) |
|
| 37 | 37 | { |
| 38 | 38 | $placeholdeConfig = (array)static::getConfig(static::$name); |
| 39 | 39 | if (empty($config) && !empty($placeholdeConfig)) { |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | { |
| 81 | 81 | $pattern = '/\{\%\s*if\s+([a-zA-Z1-9_\.]+)\s*\%\}(.*?)\{\%\s*endif\s*\%\}/s'; |
| 82 | 82 | |
| 83 | - return preg_replace_callback($pattern, function ($matches) use ($vars) { |
|
| 83 | + return preg_replace_callback($pattern, function($matches) use ($vars) { |
|
| 84 | 84 | $key = trim($matches[1]); |
| 85 | 85 | $content = $matches[2]; |
| 86 | 86 | $value = Hash::get($vars, $key); |