From 25b089c1a930e41e0d4029aad3fde531e21717e1 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 17 Nov 2024 16:17:05 +0100 Subject: fix some errors detected by phpstan --- util/precompile_smarty3.php | 50 +++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 27 deletions(-) (limited to 'util/precompile_smarty3.php') diff --git a/util/precompile_smarty3.php b/util/precompile_smarty3.php index c977a9680..10b2eadb6 100755 --- a/util/precompile_smarty3.php +++ b/util/precompile_smarty3.php @@ -1,27 +1,23 @@ -setTemplateDir($folders); - -$s->setCompileDir(TEMPLATE_BUILD_PATH . '/compiled/'); -$s->setConfigDir(TEMPLATE_BUILD_PATH . '/config/'); -$s->setCacheDir(TEMPLATE_BUILD_PATH . '/cache/'); - -$s->left_delimiter = "{{"; -$s->right_delimiter = "}}"; - -$s->compileAllTemplates('.tpl',true); \ No newline at end of file +setTemplateDir($folders); + +$s->setCompileDir(TEMPLATE_BUILD_PATH . '/compiled/'); +$s->setConfigDir(TEMPLATE_BUILD_PATH . '/config/'); +$s->setCacheDir(TEMPLATE_BUILD_PATH . '/cache/'); + +$s->left_delimiter = '{{'; +$s->right_delimiter = '}}'; + +$s->compileAllTemplates('.tpl', true); -- cgit v1.2.3