original_string: public function getMessageByCode(& $code, array $data = null)
      {
          // If we do not use a reference, then that defeats the purpose of
          // making the $errorMap a static property.
          $map = &static::getErrorMap();
  
          // When you can't find the code, use a default one.
          if (!\array_key_exists($code, $map)) {
              $code = static::UNKNOWN;
          }
  
          if (\is_array($data) && count($data) > 0) {
              return \vsprintf($map[$code], $data);
          }
  
          return $map[$code];
      }
code: public function getMessageByCode(& $code, array $data = null)
      {
          // If we do not use a reference, then that defeats the purpose of
          // making the $errorMap a static property.
          $map = &static::getErrorMap();
  
          // When you can't find the code, use a default one.
          if (!\array_key_exists($code, $map)) {
              $code = static::UNKNOWN;
          }
  
          if (\is_array($data) && count($data) > 0) {
              return \vsprintf($map[$code], $data);
          }
  
          return $map[$code];
      }
code_tokens: public function getMessageByCode ( & $ code , array $ data = null ) { // If we do not use a reference, then that defeats the purpose of // making the $errorMap a static property. $ map = & static :: getErrorMap ( ) ; // When you can't find the code, use a default one. if ( ! \ array_key_exists ( $ code , $ map ) ) { $ code = static :: UNKNOWN ; } if ( \ is_array ( $ data ) && count ( $ data ) > 0 ) { return \ vsprintf ( $ map [ $ code ] , $ data ) ; } return $ map [ $ code ] ; }
docstring: Convert error code to human readable text.
  
  @param mixed & $code
  @param array $data
  @return string
docstring_tokens: Convert error code to human readable text .