Use single quotes for simple strings.
This commit is contained in:
parent
bebf65bfed
commit
36add4e946
@ -12,7 +12,7 @@ class HmacSha1 extends SignatureMethod
|
||||
{
|
||||
public function getName()
|
||||
{
|
||||
return "HMAC-SHA1";
|
||||
return 'HMAC-SHA1';
|
||||
}
|
||||
|
||||
public function buildSignature($request, $consumer, $token)
|
||||
@ -22,7 +22,7 @@ class HmacSha1 extends SignatureMethod
|
||||
|
||||
$key_parts = array(
|
||||
$consumer->secret,
|
||||
($token) ? $token->secret : ""
|
||||
($token) ? $token->secret : ''
|
||||
);
|
||||
|
||||
$key_parts = Util::urlencodeRfc3986($key_parts);
|
||||
|
@ -23,10 +23,8 @@ class Token
|
||||
*/
|
||||
public function toString()
|
||||
{
|
||||
return "oauth_token=" .
|
||||
Util::urlencodeRfc3986($this->key) .
|
||||
"&oauth_token_secret=" .
|
||||
Util::urlencodeRfc3986($this->secret);
|
||||
return 'oauth_token=' . Util::urlencodeRfc3986($this->key) .
|
||||
'&oauth_token_secret=' . Util::urlencodeRfc3986($this->secret);
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
|
Loading…
Reference in New Issue
Block a user