Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
justmd5 committed Sep 13, 2021
1 parent 7ec8aaa commit 1f65d36
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions src/AccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class AccessToken extends AbstractAccessToken
protected $expiresJsonKey = 'expires_in';

/**
* @param string $clientId
* @param string $secret
* @param string $clientId
* @param string $secret
*/
public function __construct(string $clientId, string $secret)
{
Expand Down Expand Up @@ -65,7 +65,7 @@ public function getTokenFromServer()
}

/**
* @param boolean $forceRefresh
* @param bool $forceRefresh
*
* @return string
*/
Expand Down
8 changes: 4 additions & 4 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private function signature($params)
}

/**
* @param bool $auth
* @param bool $auth
*
* @return $this
*/
Expand All @@ -58,9 +58,9 @@ public function auth(bool $auth = true): Api
}

/**
* @param string $method
* @param array $params
* @param string $data_type
* @param string $method
* @param array $params
* @param string $data_type
*
* @return mixed
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Oauth/Oauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public function __construct(PinDuoDuo $app)
}

/**
* @param string $token
* @param int $expires
* @param string $token
* @param int $expires
*
* @return PinDuoDuo
*/
Expand Down
16 changes: 8 additions & 8 deletions src/Oauth/PreAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public function __construct(PinDuoDuo $app)
/**
* 重定向至授权 URL.
*
* @param string $state
* @param string|null $view
* @param string $state
* @param string|null $view
*/
public function authorizationRedirect(string $state = 'state', string $view = null)
{
Expand All @@ -50,8 +50,8 @@ private function accessToken()
/**
* 获取授权URL.
*
* @param string|null $state
* @param string|null $view
* @param string|null $state
* @param string|null $view
*
* @return string
*/
Expand All @@ -69,8 +69,8 @@ public function authorizationUrl(string $state = null, string $view = null): str
/**
* 获取 access token.
*
* @param string|null $code
* @param null $state
* @param string|null $code
* @param null $state
*
* @return mixed
*/
Expand All @@ -89,8 +89,8 @@ public function getAccessToken(string $code = null, $state = null)
/**
* 刷新令牌.
*
* @param string $refreshToken
* @param string|null $state
* @param string $refreshToken
* @param string|null $state
*
* @return mixed
*/
Expand Down

0 comments on commit 1f65d36

Please sign in to comment.