original_string: public function getTicketSignature($ticket, $nonce, $timestamp, $url): string
      {
          return sha1(sprintf('jsapi_ticket=%s&noncestr=%s&timestamp=%s&url=%s', $ticket, $nonce, $timestamp, $url));
      }
code: public function getTicketSignature($ticket, $nonce, $timestamp, $url): string
      {
          return sha1(sprintf('jsapi_ticket=%s&noncestr=%s&timestamp=%s&url=%s', $ticket, $nonce, $timestamp, $url));
      }
code_tokens: public function getTicketSignature ( $ ticket , $ nonce , $ timestamp , $ url ) : string { return sha1 ( sprintf ( 'jsapi_ticket=%s&noncestr=%s&timestamp=%s&url=%s' , $ ticket , $ nonce , $ timestamp , $ url ) ) ; }
docstring: Sign the params.
  
  @param string $ticket
  @param string $nonce
  @param int    $timestamp
  @param string $url
  
  @return string
docstring_tokens: Sign the params .