Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camelize helper function incorrect #576

Closed
daylightstudio opened this issue Jun 29, 2017 · 1 comment
Closed

camelize helper function incorrect #576

daylightstudio opened this issue Jun 29, 2017 · 1 comment

Comments

@daylightstudio
Copy link
Contributor

The current camelize function looks to be a version of the humanize function. Previous versions of CI had this:

return strtolower($str[0]).substr(str_replace(' ', '', ucwords(preg_replace('/[\s_]+/', ' ', $str))), 1);

https://github.com/bcit-ci/CodeIgniter4/blob/develop/system/Helpers/inflector_helper.php#L192

Thanks again

@lonnieezell
Copy link
Member

You're absolutely correct. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants