original_string: public function triggerHook ($key, $args = array(), $precedence = null)
  		{
  			if (isset($this->hooks[$key])) {
  				return $this->hooks[$key]->trigger($args, $precedence);
  			} else {
  				throw new UnregisteredHookException('Attempt to trigger unregistered hook ' . $key);
  			}
  		}
code: public function triggerHook ($key, $args = array(), $precedence = null)
  		{
  			if (isset($this->hooks[$key])) {
  				return $this->hooks[$key]->trigger($args, $precedence);
  			} else {
  				throw new UnregisteredHookException('Attempt to trigger unregistered hook ' . $key);
  			}
  		}
code_tokens: public function triggerHook ( $ key , $ args = array ( ) , $ precedence = null ) { if ( isset ( $ this -> hooks [ $ key ] ) ) { return $ this -> hooks [ $ key ] -> trigger ( $ args , $ precedence ) ; } else { throw new UnregisteredHookException ( 'Attempt to trigger unregistered hook ' . $ key ) ; } }
docstring: Will sequentially call each action bound to the hook. The hook must be registered before it can be bound to an action.
  
  The format of the result of this call as well as the behavior from call to call varies by the type of hook.
  
  @see Hook::trigger()
  @api
  
  @param string $key        String identifier of registered hook.
  @param array  $args       Arguments which will be passed to each callback.
  @param null   $precedence If supplied, the hook's actions will only be executed for a given precedence.
  
  @return mixed
  @throws UnregisteredHookException
docstring_tokens: Will sequentially call each action bound to the hook . The hook must be registered before it can be bound to an action .