mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code cleanup and realign.
This commit is contained in:
@@ -46,7 +46,7 @@ class General extends Twig_Extension
|
||||
$this->balance(),
|
||||
$this->formatFilesize(),
|
||||
$this->mimeIcon(),
|
||||
$this->markdown()
|
||||
$this->markdown(),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -249,6 +249,7 @@ class General extends Twig_Extension
|
||||
if ($repository->hasRole(auth()->user(), $role)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
);
|
||||
|
@@ -69,7 +69,6 @@ class Translation extends Twig_Extension
|
||||
'journalLinkTranslation',
|
||||
function (string $direction, string $original) {
|
||||
$key = sprintf('firefly.%s_%s', $original, $direction);
|
||||
return $key;
|
||||
$translation = trans($key);
|
||||
|
||||
if ($key === $translation) {
|
||||
|
Reference in New Issue
Block a user