mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code reordering and reformatting. I should really start employing style CI.
This commit is contained in:
@@ -93,7 +93,7 @@ class AmountFormat extends AbstractExtension
|
||||
* Will format the amount by the currency related to the given account.
|
||||
*
|
||||
* @return TwigFunction
|
||||
* See reference nr. 42
|
||||
* See reference nr. 42
|
||||
*/
|
||||
protected function formatAmountByAccount(): TwigFunction
|
||||
{
|
||||
|
@@ -212,7 +212,7 @@ class General extends AbstractExtension
|
||||
|
||||
$converter = new CommonMarkConverter(['allow_unsafe_links' => false, 'max_nesting_level' => 3, 'html_input' => 'escape'], $environment);
|
||||
|
||||
return (string) $converter->convertToHtml($text);
|
||||
return (string)$converter->convertToHtml($text);
|
||||
}, ['is_safe' => ['html']]
|
||||
);
|
||||
}
|
||||
|
@@ -65,7 +65,7 @@ class Translation extends AbstractExtension
|
||||
return new TwigFunction(
|
||||
'journalLinkTranslation',
|
||||
static function (string $direction, string $original) {
|
||||
$key = sprintf('firefly.%s_%s', $original, $direction);
|
||||
$key = sprintf('firefly.%s_%s', $original, $direction);
|
||||
$translation = trans($key);
|
||||
if ($key === $translation) {
|
||||
return $original;
|
||||
|
Reference in New Issue
Block a user