summaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty/google-api-php-client/src/Google/Utils.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/3rdparty/google-api-php-client/src/Google/Utils.php')
-rw-r--r--apps/files_external/3rdparty/google-api-php-client/src/Google/Utils.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_external/3rdparty/google-api-php-client/src/Google/Utils.php b/apps/files_external/3rdparty/google-api-php-client/src/Google/Utils.php
index a991066f2d9..f5ef32cd4d6 100644
--- a/apps/files_external/3rdparty/google-api-php-client/src/Google/Utils.php
+++ b/apps/files_external/3rdparty/google-api-php-client/src/Google/Utils.php
@@ -46,7 +46,7 @@ class Google_Utils
/**
* Misc function used to count the number of bytes in a post body, in the
- * world of multi-byte chars and the unpredictability of
+ * world of multi-byte chars and the unpredictability of
* strlen/mb_strlen/sizeof, this is the only way to do that in a sane
* manner at the moment.
*
@@ -128,6 +128,8 @@ class Google_Utils
public static function camelCase($value)
{
$value = ucwords(str_replace(array('-', '_'), ' ', $value));
- return lcfirst(str_replace(' ', '', $value));
+ $value = str_replace(' ', '', $value);
+ $value[0] = strtolower($value[0]);
+ return $value;
}
}