We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4b1174 commit a851213Copy full SHA for a851213
src/SDK/Language.php
@@ -98,7 +98,7 @@ protected function toCamelCase($str): string
98
return lcfirst($str);
99
}
100
101
- protected function toSnakeCase($str): string
+ protected function toSnakeCase($str): string
102
{
103
// Replace alternative character sets
104
$str = iconv('UTF-8', 'ASCII//TRANSLIT', $str);
@@ -108,7 +108,7 @@ protected function toSnakeCase($str): string
108
$str = preg_replace('/[ \'.\/-]/', '_', $str);
109
110
// Seperate camelCase with underscores
111
- $str = preg_replace_callback('/([a-z])([^a-z_])/', function($matches) {
+ $str = preg_replace_callback('/([a-z])([^a-z_])/', function ($matches) {
112
return $matches[1] . '_' . strtolower($matches[2]);
113
}, $str);
114
0 commit comments