original_string: protected function sendTextMsgToJsonString(WxSendTextMsg $msg)
      {
          $formatStr = '{
                          "touser":"%s",
                          "msgtype":"%s",
                          "text":
                          {
                               "content":"%s"
                          }
                      }';
          $result = sprintf($formatStr,   $msg->getToUserName(),
                                          $msg->getMsgType(),
                                          $msg->getContent()
                          );
  
  
          return $result;
      }
code: protected function sendTextMsgToJsonString(WxSendTextMsg $msg)
      {
          $formatStr = '{
                          "touser":"%s",
                          "msgtype":"%s",
                          "text":
                          {
                               "content":"%s"
                          }
                      }';
          $result = sprintf($formatStr,   $msg->getToUserName(),
                                          $msg->getMsgType(),
                                          $msg->getContent()
                          );
  
  
          return $result;
      }
code_tokens: protected function sendTextMsgToJsonString ( WxSendTextMsg $ msg ) { $ formatStr = '{
                          "touser":"%s",
                          "msgtype":"%s",
                          "text":
                          {
                               "content":"%s"
                          }
                      }' ; $ result = sprintf ( $ formatStr , $ msg -> getToUserName ( ) , $ msg -> getMsgType ( ) , $ msg -> getContent ( ) ) ; return $ result ; }
docstring: formatter WxSendTextMsg to Json string
  @param WxSendTextMsg $msg
  @return string
docstring_tokens: formatter WxSendTextMsg to Json string