Skip to content
Open
Prev Previous commit
Next Next commit
[ticket/16958] Split function across multiple lines
PHPBB3-16958
  • Loading branch information
marc1706 committed May 1, 2023
commit 9a578d67e2949128d68845aff891fb4d8c5e35e6
6 changes: 5 additions & 1 deletion phpBB/phpbb/debug/renderer/html_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ protected function setup_twig(): void

$this->twig = new Environment($loader);
$this->twig->addFunction(new TwigFunction('lang', [$this, 'lang']));
$this->twig->addTest(new TwigTest('numeric', function ($value) { return is_numeric($value); }));
$this->twig->addTest(new TwigTest('numeric', function ($value)
{
return is_numeric($value);
}
));
}

/**
Expand Down