Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
eronisko committed Mar 15, 2024
1 parent dfab117 commit bcf401c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,20 @@ private function getTranslations()
->whereNotNull('roles')
->distinct()
->pluck('roles')
->reduce(fn(Collection $carry, array $row) => $carry->concat($row), collect())
->flatten()
->unique()
->sort()
->map(function (string $id) {
return (object) [
'id' => $id,
'sk' => Lang::hasForLocale("authority.roles.{$id}", 'sk')
? Lang::get("authority.roles.{$id}", [], 'sk')
? Lang::get("authority.roles.{$id}", locale: 'sk')
: null,
'cs' => Lang::hasForLocale("authority.roles.{$id}", 'cs')
? Lang::get("authority.roles.{$id}", [], 'cs')
? Lang::get("authority.roles.{$id}", locale: 'cs')
: null,
'en' => Lang::hasForLocale("authority.roles.{$id}", 'en')
? Lang::get("authority.roles.{$id}", [], 'en')
? Lang::get("authority.roles.{$id}", locale: 'en')
: null,
];
});
Expand Down

0 comments on commit bcf401c

Please sign in to comment.