original_string: public static function camelize($word)
      {
          $upper = function($matches) {
              return strtoupper($matches[0]);
          };
          $word = preg_replace('/([a-z])([A-Z])/', '$1_$2', $word);
          $camelized = str_replace(' ', '', ucwords(str_replace(['_', '-'], ' ', strtolower($word))));
          return preg_replace_callback('/(\\\[a-z])/', $upper, $camelized);
      }
code: public static function camelize($word)
      {
          $upper = function($matches) {
              return strtoupper($matches[0]);
          };
          $word = preg_replace('/([a-z])([A-Z])/', '$1_$2', $word);
          $camelized = str_replace(' ', '', ucwords(str_replace(['_', '-'], ' ', strtolower($word))));
          return preg_replace_callback('/(\\\[a-z])/', $upper, $camelized);
      }
code_tokens: public static function camelize ( $ word ) { $ upper = function ( $ matches ) { return strtoupper ( $ matches [ 0 ] ) ; } ; $ word = preg_replace ( '/([a-z])([A-Z])/' , '$1_$2' , $ word ) ; $ camelized = str_replace ( ' ' , '' , ucwords ( str_replace ( [ '_' , '-' ] , ' ' , strtolower ( $ word ) ) ) ) ; return preg_replace_callback ( '/(\\\[a-z])/' , $ upper , $ camelized ) ; }
docstring: Takes a under_scored word and turns it into a camelcased word.
  
  @param  string  $word  An underscored or slugged word (i.e. `'red_bike'` or `'red-bike'`).
  @param  array   $on    List of characters to camelize on.
  @return string         Camel cased version of the word (i.e. `'RedBike'`).
docstring_tokens: Takes a under_scored word and turns it into a camelcased word .