mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
Code cleanup before release.
This commit is contained in:
@@ -41,7 +41,7 @@ class Translation extends Twig_Extension
|
||||
$filters[] = new Twig_SimpleFilter(
|
||||
'_',
|
||||
function ($name) {
|
||||
return strval(trans(sprintf('firefly.%s', $name)));
|
||||
return (string)trans(sprintf('firefly.%s', $name));
|
||||
},
|
||||
['is_safe' => ['html']]
|
||||
);
|
||||
@@ -59,13 +59,6 @@ class Translation extends Twig_Extension
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getName(): string
|
||||
{
|
||||
return 'FireflyIII\Support\Twig\Translation';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Twig_SimpleFunction
|
||||
|
||||
Reference in New Issue
Block a user