src/Shell/InflectShell.php
protected function _inflect($function, $words) {
		$this->out($words);
		if ($function === 'all') {
			foreach ($this->validMethods as $method) {
				$functionName = $this->_getMessage($method);
				$this->out("{$functionName}: " . Inflector::$method($words));
			}
		} else {
			$functionName = $this->_getMessage($function);
			$this->out("{$functionName}: " . Inflector::$function($words));
		}
	}
protected function _inflect($function, $words) {
		$this->out($words);
		if ($function === 'all') {
			foreach ($this->validMethods as $method) {
				$functionName = $this->_getMessage($method);
				$this->out("{$functionName}: " . Inflector::$method($words));
			}
		} else {
			$functionName = $this->_getMessage($function);
			$this->out("{$functionName}: " . Inflector::$function($words));
		}
	}
protected function _inflect ( $ function , $ words ) { $ this -> out ( $ words ) ; if ( $ function === 'all' ) { foreach ( $ this -> validMethods as $ method ) { $ functionName = $ this -> _getMessage ( $ method ) ; $ this -> out ( "{$functionName}: " . Inflector :: $ method ( $ words ) ) ; } } else { $ functionName = $ this -> _getMessage ( $ function ) ; $ this -> out ( "{$functionName}: " . Inflector :: $ function ( $ words ) ) ; } }
Inflects a set of words based upon the inflection set in the arguments

@param string $function
@param string $words
@return void
Inflects a set of words based upon the inflection set in the arguments