Skip to content
Permalink
Browse files

Improve arugement name and docblock.

  • Loading branch information...
ADmad committed Sep 1, 2014
1 parent c96d1b0 commit c731d7ba1888c4658f2aacff41aa728e1def852b
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/Utility/Inflector.php
@@ -599,19 +599,19 @@ public static function underscore($camelCasedWord) {
}
/**
* Returns the given underscored_word or CamelCasedWord as an hyphenated-word.
* Returns the given CamelCasedWordGroup as an hyphenated-word-group.
*
* @param string $word The word to hyphenate.
* @return string Hyphenated version of the word.
* @param string $wordGroup The string to hyphenate.
* @return string Hyphenated version of the word group
*/
public static function hyphenate($word) {
$result = static::_cache(__FUNCTION__, $word);
public static function hyphenate($wordGroup) {
$result = static::_cache(__FUNCTION__, $wordGroup);
if ($result !== null) {
return $result;
}
$result = str_replace('_', '-', static::underscore($word));
static::_cache(__FUNCTION__, $word, $result);
$result = str_replace('_', '-', static::underscore($wordGroup));
static::_cache(__FUNCTION__, $wordGroup, $result);
return $result;
}

0 comments on commit c731d7b

Please sign in to comment.
You can’t perform that action at this time.