Fix some code standards warnings.

This commit is contained in:
mark_story 2012-03-24 22:15:08 -04:00
parent c847ec216c
commit 49a455a2cb
3 changed files with 98 additions and 98 deletions

View file

@ -515,9 +515,9 @@ class Inflector {
*/
public static function variable($string) {
if (!($result = self::_cache(__FUNCTION__, $string))) {
$string2 = Inflector::camelize(Inflector::underscore($string));
$replace = strtolower(substr($string2, 0, 1));
$result = preg_replace('/\\w/', $replace, $string2, 1);
$camelized = Inflector::camelize(Inflector::underscore($string));
$replace = strtolower(substr($camelized, 0, 1));
$result = preg_replace('/\\w/', $replace, $camelized, 1);
self::_cache(__FUNCTION__, $string, $result);
}
return $result;