original_string: public function hasTrans($id, $domain = null, $locale = null)
      {
          if (null === $domain) {
              $domain = 'messages';
          }
  
          return $this->getCatalogue($locale)->has($id, $domain);
      }
code: public function hasTrans($id, $domain = null, $locale = null)
      {
          if (null === $domain) {
              $domain = 'messages';
          }
  
          return $this->getCatalogue($locale)->has($id, $domain);
      }
code_tokens: public function hasTrans ( $ id , $ domain = null , $ locale = null ) { if ( null === $ domain ) { $ domain = 'messages' ; } return $ this -> getCatalogue ( $ locale ) -> has ( $ id , $ domain ) ; }
docstring: Checks if a message has a translation.
  
  @param  string      $id     The message id.
  @param  string|null $domain The domain for the message or NULL to use the default.
  @param  string|null $locale The locale or NULL to use the default.
  @return boolean TRUE if the message has a translation, FALSE otherwise.
docstring_tokens: Checks if a message has a translation .