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 Feb 29, 2024
1 parent 1e7dc3d commit dbcebbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ private static function getLabel(mixed $value): string

private static function strToConstName($str): string
{
if (! ctype_lower($str)) {
if (!ctype_lower($str)) {
$str = preg_replace('/\s+/u', '', ucwords($str));
$str = strtolower(preg_replace('/(.)(?=[A-Z])/u', '$1' . '_', $str));
$str = preg_replace('/(.+?)([0-9]+)/u', '$1' . '_' . '$2', $str);
Expand Down

0 comments on commit dbcebbc

Please sign in to comment.