1
0
Fork 0
mirror of https://github.com/archtechx/enums.git synced 2025-12-14 15:04:03 +00:00

Merge branch 'master' of github.com:archtechx/enums

This commit is contained in:
Samuel Štancl 2024-01-28 18:52:47 +01:00
commit a99ee1a7e0

View file

@ -45,7 +45,7 @@ trait Options
if (str_contains($name, '_')) { if (str_contains($name, '_')) {
// Snake case // Snake case
$words = explode('_', $name); $words = explode('_', $name);
} else if (strtoupper($name) === $name) { } elseif (strtoupper($name) === $name) {
// If the entire name is uppercase without underscores, it's a single word // If the entire name is uppercase without underscores, it's a single word
$words = [$name]; $words = [$name];
} else { } else {