original_string: private function updateMessageTemplate( $template, $key ) {    
          //invalide message key
          if( !key_exists( $messageKey, $this->templates ) && $key != self::DEFAULT_KEY )
              throw new Exception\MessageTemplateDoesNotExist( "A message template does not exist for key $messageKey" );
  
          $this->templates[$key] = $template;
      }
code: private function updateMessageTemplate( $template, $key ) {    
          //invalide message key
          if( !key_exists( $messageKey, $this->templates ) && $key != self::DEFAULT_KEY )
              throw new Exception\MessageTemplateDoesNotExist( "A message template does not exist for key $messageKey" );
  
          $this->templates[$key] = $template;
      }
code_tokens: private function updateMessageTemplate ( $ template , $ key ) { //invalide message key
   if ( ! key_exists ( $ messageKey , $ this -> templates ) && $ key != self :: DEFAULT_KEY ) throw new Exception \ MessageTemplateDoesNotExist ( "A message template does not exist for key $messageKey" ) ; $ this -> templates [ $ key ] = $ template ; }
docstring: Updates the message template. This overrides existing message templates.
  @param $template The message template.
  @param $key The message key.
docstring_tokens: Updates the message template . This overrides existing message templates .