Skip to content

Commit 35effeb

Browse files
committed
Add missing @throws to docblocks
1 parent e0b4046 commit 35effeb

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

src/Controllers/AbstractOAuth2Controller.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ final protected function validateScopes(array $scopes)
211211
* @return AccessTokenModel
212212
* @throws \InvalidArgumentException
213213
* @throws ApiException
214+
* @throws \Exception
215+
* @throws \GuzzleHttp\Exception\GuzzleException
214216
*/
215217
final protected function createAccessToken($grantType, $additionalParams = [])
216218
{

src/Controllers/AuthCodeController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public function startAuthorizationGrant(array $scopes)
123123
* @return AccessTokenModel - useful for debugging
124124
* @throws \InvalidArgumentException
125125
* @throws \Exception when state param is invalid
126+
* @throws \GuzzleHttp\Exception\GuzzleException
126127
*/
127128
public function completeAuthorizationGrant($authorizationCode, $state)
128129
{

src/Controllers/DeviceCodeController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class DeviceCodeController extends AbstractOAuth2Controller
2727
* @return DeviceCodeModel
2828
* @throws \InvalidArgumentException
2929
* @throws \Exception
30+
* @throws \GuzzleHttp\Exception\GuzzleException
3031
*/
3132
public function startDeviceCodeGrant(array $scopes)
3233
{
@@ -48,6 +49,7 @@ public function startDeviceCodeGrant(array $scopes)
4849
* @api
4950
* @return AccessTokenModel
5051
* @throws \Exception
52+
* @throws \GuzzleHttp\Exception\GuzzleException
5153
*/
5254
public function pollDeviceCodeGrant()
5355
{
@@ -76,6 +78,8 @@ public function pollDeviceCodeGrant()
7678
* @param string[] $scopes
7779
* @return DeviceCodeModel
7880
* @throws ApiException
81+
* @throws \Exception
82+
* @throws \GuzzleHttp\Exception\GuzzleException
7983
*/
8084
private function createDeviceCode(array $scopes)
8185
{

src/Controllers/LogoutController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class LogoutController extends AbstractOAuth2Controller
2626
* @api
2727
* @param string|null $accessToken
2828
* @throws \Exception if no access token is passed in and no refresh token is found in the secure storage layer
29+
* @throws \GuzzleHttp\Exception\GuzzleException
2930
*/
3031
public function deleteAccessAndRefreshTokens($accessToken = null)
3132
{
@@ -55,6 +56,7 @@ public function deleteAccessAndRefreshTokens($accessToken = null)
5556
* @param string $token
5657
* @param bool $isRefreshToken
5758
* @throws ApiException
59+
* @throws \GuzzleHttp\Exception\GuzzleException
5860
*/
5961
private function revokeToken($token, $isRefreshToken = false)
6062
{

src/Controllers/RefreshTokenController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class RefreshTokenController extends AbstractOAuth2Controller
2222
* @api
2323
* @return AccessTokenModel
2424
* @throws \Exception
25+
* @throws \GuzzleHttp\Exception\GuzzleException
2526
*/
2627
public function generateNewAccessTokenFromRefreshToken()
2728
{

src/Providers/EncryptionProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function isValid()
3939

4040
/**
4141
* {@inheritdoc}
42+
* @throws \Exception
4243
*/
4344
public function encrypt($value)
4445
{
@@ -68,6 +69,7 @@ public function encrypt($value)
6869

6970
/**
7071
* {@inheritdoc}
72+
* @throws \Exception
7173
*/
7274
public function decrypt($value)
7375
{

0 commit comments

Comments
 (0)