@@ -98,7 +98,7 @@ |
||
| 98 | 98 | * |
| 99 | 99 | * @param string $appKey |
| 100 | 100 | * @param string $appSecret |
| 101 | - * @return array |
|
| 101 | + * @return string |
|
| 102 | 102 | */ |
| 103 | 103 | protected function getHeaders($appKey, $appSecret) |
| 104 | 104 | { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | protected function getEndpoint(Config $config) |
| 91 | 91 | { |
| 92 | 92 | $endpoint = rtrim($config->get('endpoint', self::ENDPOINT_HOST), '/'); |
| 93 | - return $endpoint . self::ENDPOINT_URI; |
|
| 93 | + return $endpoint.self::ENDPOINT_URI; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | { |
| 121 | 121 | $now = date('Y-m-d\TH:i:s\Z'); |
| 122 | 122 | $nonce = uniqid(); |
| 123 | - $passwordDigest = base64_encode(hash('sha256', ($nonce . $now . $appSecret))); |
|
| 123 | + $passwordDigest = base64_encode(hash('sha256', ($nonce.$now.$appSecret))); |
|
| 124 | 124 | return sprintf("UsernameToken Username=\"%s\",PasswordDigest=\"%s\",Nonce=\"%s\",Created=\"%s\"", |
| 125 | 125 | $appKey, $passwordDigest, $nonce, $now); |
| 126 | 126 | } |