Skip to content

Commit

Permalink
Merge branch 'master' of github.com:archtechx/enums
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl committed Jan 28, 2024
2 parents 61ba793 + b62251d commit a99ee1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static function stringOptions(Closure $callback = null, string $glue = '\
if (str_contains($name, '_')) {
// Snake case
$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
$words = [$name];
} else {
Expand Down

0 comments on commit a99ee1a

Please sign in to comment.