Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 1522c62

Browse files
committed
🚿
1 parent 224faeb commit 1522c62

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Core/OAuth1Provider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ protected function getSignature(string $url, array $params, string $method, stri
149149
throw new ProviderException('getSignature: invalid url');
150150
}
151151

152-
$query = $this->parseQuery($parseURL['query'] ?? '');
153-
152+
$query = $this->parseQuery($parseURL['query'] ?? '');
154153
$signatureParams = array_merge($query, $params);
155154

156155
unset($signatureParams['oauth_signature']);
@@ -185,8 +184,7 @@ public function getAccessToken(string $token, string $verifier):AccessToken{
185184
* @inheritDoc
186185
*/
187186
public function getRequestAuthorization(RequestInterface $request, AccessToken $token):RequestInterface{
188-
$uri = $request->getUri();
189-
187+
$uri = $request->getUri();
190188
$query = $this->parseQuery($uri->getQuery());
191189

192190
$parameters = [

src/Core/OAuthProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ protected function getRequestTarget(string $uri):string{
445445
if(isset($parsedURL['host'])){
446446

447447
// back out if it doesn't match
448+
/** @phan-suppress-next-line PhanTypeArraySuspiciousNullable - $this->>apiURL should always return a host */
448449
if($parsedURL['host'] !== parseUrl($this->apiURL)['host']){
449450
throw new ProviderException('given host does not match provider host');
450451
}

0 commit comments

Comments
 (0)