mirror of
https://github.com/flextype/flextype.git
synced 2025-08-27 15:00:11 +02:00
@@ -24,8 +24,8 @@ class AssetsTwigExtension extends \Twig_Extension
|
||||
public function getFunctions()
|
||||
{
|
||||
return [
|
||||
new \Twig_SimpleFunction('assets_add', array($this, 'add')),
|
||||
new \Twig_SimpleFunction('assets_get', array($this, 'get')),
|
||||
new \Twig_SimpleFunction('assets_add', [$this, 'add']),
|
||||
new \Twig_SimpleFunction('assets_get', [$this, 'get']),
|
||||
];
|
||||
}
|
||||
|
||||
|
@@ -35,7 +35,7 @@ class EmitterTwigExtension extends \Twig_Extension
|
||||
public function getFunctions()
|
||||
{
|
||||
return [
|
||||
new \Twig_SimpleFunction('emmiter_emmit', array($this, 'emit')),
|
||||
new \Twig_SimpleFunction('emmiter_emmit', [$this, 'emit']),
|
||||
];
|
||||
}
|
||||
|
||||
|
@@ -35,8 +35,8 @@ class EntriesTwigExtension extends \Twig_Extension
|
||||
public function getFunctions()
|
||||
{
|
||||
return [
|
||||
new \Twig_SimpleFunction('entries_fetch', array($this, 'fetch')),
|
||||
new \Twig_SimpleFunction('entries_fetch_all', array($this, 'fetchAll')),
|
||||
new \Twig_SimpleFunction('entries_fetch', [$this, 'fetch']),
|
||||
new \Twig_SimpleFunction('entries_fetch_all', [$this, 'fetchAll']),
|
||||
];
|
||||
}
|
||||
|
||||
|
@@ -24,8 +24,8 @@ class FilesystemTwigExtension extends \Twig_Extension
|
||||
public function getFunctions()
|
||||
{
|
||||
return [
|
||||
new \Twig_SimpleFunction('filesystem_has', array($this, 'has')),
|
||||
new \Twig_SimpleFunction('filesystem_read', array($this, 'read')),
|
||||
new \Twig_SimpleFunction('filesystem_has', [$this, 'has']),
|
||||
new \Twig_SimpleFunction('filesystem_read', [$this, 'read']),
|
||||
];
|
||||
}
|
||||
|
||||
|
@@ -24,7 +24,7 @@ class I18nTwigExtension extends \Twig_Extension
|
||||
public function getFunctions()
|
||||
{
|
||||
return [
|
||||
new \Twig_SimpleFunction('tr', array($this, 'tr')),
|
||||
new \Twig_SimpleFunction('tr', [$this, 'tr']),
|
||||
];
|
||||
}
|
||||
|
||||
|
@@ -22,8 +22,8 @@ class JsonParserTwigExtension extends \Twig_Extension
|
||||
public function getFunctions()
|
||||
{
|
||||
return [
|
||||
new \Twig_SimpleFunction('json_parser_decode', array($this, 'decode')),
|
||||
new \Twig_SimpleFunction('json_parser_encode', array($this, 'encode'))
|
||||
new \Twig_SimpleFunction('json_parser_decode', [$this, 'decode']),
|
||||
new \Twig_SimpleFunction('json_parser_encode', [$this, 'encode'])
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user