This commit is contained in:
Julio Cesar Laura Avendaño
2020-01-03 08:34:28 -04:00
parent fa1d704dad
commit 46a557c9ea
2 changed files with 122 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ class PhpNameGenerator implements NameGenerator {
{
$name = "";
$tok = strtok($schemaName, self::STD_SEPARATOR_CHAR);
while($tok) {
while($tok !== false) {
$name .= ucfirst(strtolower($tok));
$tok = strtok(self::STD_SEPARATOR_CHAR);
}
@@ -110,7 +110,7 @@ class PhpNameGenerator implements NameGenerator {
{
$name = "";
$tok = strtok($schemaName, self::STD_SEPARATOR_CHAR);
while($tok) {
while($tok !== false) {
$name .= ucfirst($tok);
$tok = strtok(self::STD_SEPARATOR_CHAR);
}