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

Commit 2d73ef9

Browse files
committed
🚿
1 parent c30916e commit 2d73ef9

File tree

9 files changed

+10
-11
lines changed

9 files changed

+10
-11
lines changed

examples/OAuthExampleSessionStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class OAuthExampleSessionStorage extends SessionStorage{
2929
public function __construct(SettingsContainerInterface $options = null, string $storagepath = null){
3030
parent::__construct($options);
3131

32-
$this->storagepath = $storagepath ?? __DIR__;
32+
$this->storagepath = ($storagepath ?? __DIR__);
3333
}
3434

3535
/**

examples/Providers/Spotify/spotify-common.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
$spotify->setStorage($storage);
3131

3232
if(!$storage->hasAccessToken()){
33-
/** @var \chillerlan\OAuth\Core\AccessToken $token */
3433
$token = (new AccessToken)->fromJSON(file_get_contents(($CFGDIR ?? '').'/Spotify.token.json'));
3534
$storage->storeAccessToken($token);
3635
}

src/Mastodon.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class Mastodon extends OAuth2Provider implements CSRFToken, TokenRefresh{
3131
protected ?string $apiDocs = 'https://docs.joinmastodon.org/api/';
3232

3333
protected array $defaultScopes = [
34-
Mastodon::SCOPE_READ,
35-
Mastodon::SCOPE_FOLLOW,
34+
self::SCOPE_READ,
35+
self::SCOPE_FOLLOW,
3636
];
3737

3838
protected string $instance = '';

src/Mixcloud.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use function sprintf;
1717

1818
/**
19-
* note: a missing slash at the end of the path will end up in a HTTP/301
19+
* note: a missing slash at the end of the path will end up in an HTTP/301
2020
*
2121
* @see https://www.mixcloud.com/developers/
2222
*/

src/SteamOpenID.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getAuthURL(array $params = null):UriInterface{
4747
}
4848

4949
/**
50-
* @inheritDoc
50+
*
5151
*/
5252
public function getAccessToken(array $received):AccessToken{
5353

tests/Live/MastodonAPITest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ class MastodonAPITest extends OAuth2APITestAbstract{
2626
protected string $FQN = Mastodon::class;
2727
protected string $ENV = 'MASTODON';
2828

29-
protected $testInstance;
29+
protected string $testInstance;
3030

3131
protected function setUp():void{
3232
parent::setUp();
3333

34-
$this->testInstance = $this->dotEnv->get($this->ENV.'_INSTANCE');
34+
$this->testInstance = ($this->dotEnv->get($this->ENV.'_INSTANCE') ?? '');
3535

3636
$this->provider->setInstance($this->testInstance);
3737
}

tests/Live/TwitterAPITest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use chillerlan\OAuthTest\Providers\OAuth1APITestAbstract;
1616

1717
/**
18-
* twitter API tests & examples
18+
* Twitter API tests & examples
1919
*
2020
* @link https://developer.twitter.com/en/docs/api-reference-index
2121
*

tests/Live/TwitterCCAPITest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
namespace chillerlan\OAuthTest\Providers\Live;
1212

13-
1413
use chillerlan\OAuth\Providers\TwitterCC;
1514
use chillerlan\OAuthTest\Providers\OAuth2APITestAbstract;
1615

tests/Unit/InstagramTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010

1111
namespace chillerlan\OAuthTest\Providers\Unit;
1212

13+
use chillerlan\OAuth\Providers\Instagram;
1314
use chillerlan\OAuthTest\Providers\OAuth2ProviderTestAbstract;
1415

1516
/**
1617
* @property \chillerlan\OAuth\Providers\Instagram $provider
1718
*/
1819
class InstagramTest extends OAuth2ProviderTestAbstract{
1920

20-
protected string $FQN = \chillerlan\OAuth\Providers\Instagram::class;
21+
protected string $FQN = Instagram::class;
2122

2223
}

0 commit comments

Comments
 (0)