Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Nov 15, 2024
1 parent 3e08125 commit d77eb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Traits/EnumEnhance.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function value(): int|string
public function description(string $localizationGroup = 'enums'): string
{
$name = (version_compare(app()->version(), '11.0.0', '>=') ? $this->value : $this->name);
$key = sprintf("%s.%s.%s", $localizationGroup, static::class, $name);
$key = sprintf('%s.%s.%s', $localizationGroup, static::class, $name);

return Lang::has($key) ? Lang::get($key) : Str::of($this->name)->replace('_', ' ')->lower();
}
Expand Down

0 comments on commit d77eb1e

Please sign in to comment.