-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dda628b
commit a1a134c
Showing
5 changed files
with
88 additions
and
44 deletions.
There are no files selected for viewing
10 changes: 9 additions & 1 deletion
10
src/Providers/Custom/LinkedIn/Provider/Exception/LinkedInAccessDeniedException .php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of fof/oauth. | ||
* | ||
* Copyright (c) FriendsOfFlarum. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace FoF\OAuth\Providers\Custom\LinkedIn\Provider\Exception; | ||
|
||
class LinkedInAccessDeniedException extends \League\OAuth2\Client\Provider\Exception\IdentityProviderException | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of fof/oauth. | ||
* | ||
* Copyright (c) FriendsOfFlarum. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace FoF\OAuth\Providers\Custom\LinkedIn\Token; | ||
|
||
class LinkedInAccessToken extends \League\OAuth2\Client\Token\AccessToken | ||
|
@@ -13,7 +22,8 @@ class LinkedInAccessToken extends \League\OAuth2\Client\Token\AccessToken | |
* Constructs an access token. | ||
* | ||
* @param array $options An array of options returned by the service provider | ||
* in the access token request. The `access_token` option is required. | ||
* in the access token request. The `access_token` option is required. | ||
* | ||
* @throws InvalidArgumentException if `access_token` is not provided in `$options`. | ||
*/ | ||
public function __construct(array $options = []) | ||
Check failure on line 29 in src/Providers/Custom/LinkedIn/Token/LinkedInAccessToken.php GitHub Actions / run / PHPStan PHP 7.3
Check failure on line 29 in src/Providers/Custom/LinkedIn/Token/LinkedInAccessToken.php GitHub Actions / run / PHPStan PHP 7.4
Check failure on line 29 in src/Providers/Custom/LinkedIn/Token/LinkedInAccessToken.php GitHub Actions / run / PHPStan PHP 8.0
Check failure on line 29 in src/Providers/Custom/LinkedIn/Token/LinkedInAccessToken.php GitHub Actions / run / PHPStan PHP 8.1
Check failure on line 29 in src/Providers/Custom/LinkedIn/Token/LinkedInAccessToken.php GitHub Actions / run / PHPStan PHP 8.3
|
||
|
@@ -32,7 +42,7 @@ public function __construct(array $options = []) | |
/** | ||
* Returns the refresh token expiration timestamp, if defined. | ||
* | ||
* @return integer|null | ||
* @return int|null | ||
*/ | ||
public function getRefreshTokenExpires() | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters