diff --git a/src/Support/Traits/EnumEnhance.php b/src/Support/Traits/EnumEnhance.php index b3fd524..bb2680c 100644 --- a/src/Support/Traits/EnumEnhance.php +++ b/src/Support/Traits/EnumEnhance.php @@ -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(); }