Browse Source

Improve arugement name and docblock.

ADmad 11 years ago
parent
commit
c731d7ba18
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/Utility/Inflector.php

+ 7 - 7
src/Utility/Inflector.php

@@ -599,19 +599,19 @@ class Inflector {
 	}
 
 /**
- * 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;
 	}