Skip to content

Commit

Permalink
Fix docblocks (SocialiteProviders#1079)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot authored Sep 11, 2023
1 parent 3383584 commit 6e12dff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 30 deletions.
6 changes: 1 addition & 5 deletions src/Flexkids/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,7 @@ public static function additionalConfigKeys()
return ['resource', 'apiuser', 'authurl', 'server'];
}

/**
* @param $idToken
* @return Provider
*/
private function setIdToken($idToken)
private function setIdToken(string $idToken): static
{
$this->idToken = $idToken;

Expand Down
7 changes: 1 addition & 6 deletions src/Jira/RsaSha1Signature.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ public function sign($uri, array $parameters = [], $method = 'POST')
return base64_encode($signature);
}

/**
* Set cert path.
*
* @param $certPath
*/
public function setCertPath($certPath)
public function setCertPath(string $certPath): void
{
$this->certPath = $certPath;
}
Expand Down
6 changes: 1 addition & 5 deletions src/Weibo/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ protected function removeCallback($response)
return $response;
}

/**
* @param $token
* @return string
*/
protected function getUid($token)
protected function getUid(string $token): string
{
$response = $this->getHttpClient()->get('https://api.weibo.com/2/account/get_uid.json', [
RequestOptions::QUERY => ['access_token' => $token],
Expand Down
15 changes: 1 addition & 14 deletions src/Withings/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,20 +151,7 @@ protected function fetchUserDetails(TokenCredentials $tokenCredentials, $force =
return parent::fetchUserDetails($tokenCredentials, $force);
}

/**
* Since Withings has their own unique implementation of oAuth1 we need to extract the oAuthParameters
* and append them to the endpoint as a querystring.
*
* This is an extraction of $this->protocolHeader()
*
* :(
*
* @param $url
* @param TokenCredentials $tokenCredentials
* @param array $extraParams
* @return array
*/
private function getOauthParameters($url, TokenCredentials $tokenCredentials, $extraParams = [])
private function getOauthParameters(string $url, TokenCredentials $tokenCredentials, array $extraParams = []): array
{
$parameters = array_merge(
$this->baseProtocolParameters(),
Expand Down

0 comments on commit 6e12dff

Please sign in to comment.