src/Template/* to PSR-4

This commit is contained in:
Simon Wisselink
2022-12-22 21:23:22 +01:00
parent d88175de3e
commit 0fc2b3726b
83 changed files with 3473 additions and 3458 deletions

View File

@@ -6,6 +6,8 @@
* @subpackage PHPunitPlugin
*/
use Smarty\Template;
/**
* Smarty {checkvar}
*
@@ -24,7 +26,7 @@ function smarty_function_checkvar($params, $template)
$var = $params['var'];
$ptr = $template;
while ($ptr) {
if (in_array('template', $types) && $ptr instanceof Smarty_Internal_Template) {
if (in_array('template', $types) && $ptr instanceof Template) {
$output .= "#{$ptr->source->name}:\${$var} =";
$output .= isset($ptr->tpl_vars[$var]) ? preg_replace('/\s/', '', var_export($ptr->tpl_vars[$var]->value, true)) : '>unassigned<';
$i = 0;