Skip to content

Commit 4ceebd4

Browse files
committed
Update CaseConverter.php
1 parent 58eee57 commit 4ceebd4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

webfiori/json/CaseConverter.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static function convert(string $value, string $style) : string {
5959
if ($style == 'snake') {
6060
return self::toSnackCase($value);
6161
} else if ($style == 'kebab') {
62-
return self::toKebabCase($value);
62+
return self::toKebabCase($value);
6363
} else if ($style == 'camel') {
6464
return self::toCamelCase($value);
6565
} else {
@@ -157,9 +157,8 @@ private static function addChar($x, &$isNumFound, $to, $char, &$snakeOrKebabFoun
157157
$retVal .= $to.strtolower($char);
158158
} else if ($isUpper && $x == 0) {
159159
$retVal .= strtolower($char);
160-
} else if ($isUpper && $x != 0 && $snakeOrKebabFound) {
160+
} else if ($isUpper && $x != 0 && $snakeOrKebabFound) {
161161
$retVal .= strtolower($char);
162-
163162
} else {
164163
$retVal .= $char;
165164
}

0 commit comments

Comments
 (0)