mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 19:54:12 +02:00
[ticket/16955] Clean up storage and template classes
PHPBB3-16955
This commit is contained in:
@@ -30,9 +30,9 @@ class avatar extends AbstractExtension
|
||||
/**
|
||||
* Returns a list of global functions to add to the existing list.
|
||||
*
|
||||
* @return array An array of global functions
|
||||
* @return \Twig\TwigFunction[] An array of global functions
|
||||
*/
|
||||
public function getFunctions()
|
||||
public function getFunctions(): array
|
||||
{
|
||||
return array(
|
||||
new \Twig\TwigFunction('avatar', array($this, 'get_avatar')),
|
||||
|
@@ -43,9 +43,9 @@ class config extends AbstractExtension
|
||||
/**
|
||||
* Returns a list of global functions to add to the existing list.
|
||||
*
|
||||
* @return array An array of global functions
|
||||
* @return \Twig\TwigFunction[] An array of global functions
|
||||
*/
|
||||
public function getFunctions()
|
||||
public function getFunctions(): array
|
||||
{
|
||||
return array(
|
||||
new \Twig\TwigFunction('config', array($this, 'get_config')),
|
||||
|
@@ -22,7 +22,7 @@ use Twig\TwigFunction;
|
||||
|
||||
class routing extends AbstractExtension
|
||||
{
|
||||
/** @var \phpbb\controller\helper */
|
||||
/** @var \phpbb\routing\helper */
|
||||
protected $helper;
|
||||
|
||||
/**
|
||||
|
@@ -28,14 +28,12 @@ class username extends AbstractExtension
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of global functions to add to the existing list.
|
||||
*
|
||||
* @return array An array of global functions
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getFunctions()
|
||||
{
|
||||
return array(
|
||||
new \Twig\TwigFunction('username', array($this, 'get_username')),
|
||||
new \Twig\TwigFunction('username', [$this, 'get_username']),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user