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

Commit bf8562a

Browse files
committed
:octocat: why did i change this???
1 parent 3e219b3 commit bf8562a

11 files changed

+11
-11
lines changed

src/Core/TokenInvalidate.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ interface TokenInvalidate{
2727
*
2828
* @throws \chillerlan\OAuth\Providers\ProviderException
2929
*/
30-
public function InvalidateAccessToken(AccessToken|null $token = null):bool;
30+
public function invalidateAccessToken(AccessToken|null $token = null):bool;
3131

3232
}

src/Providers/BigCartel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function me():ResponseInterface{
5959
/**
6060
* @inheritDoc
6161
*/
62-
public function InvalidateAccessToken(AccessToken|null $token = null):bool{
62+
public function invalidateAccessToken(AccessToken|null $token = null):bool{
6363

6464
if($token === null && !$this->storage->hasAccessToken($this->serviceName)){
6565
throw new ProviderException('no token given');

src/Providers/DeviantArt.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function me():ResponseInterface{
7575
/**
7676
* @inheritDoc
7777
*/
78-
public function InvalidateAccessToken(AccessToken|null $token = null):bool{
78+
public function invalidateAccessToken(AccessToken|null $token = null):bool{
7979

8080
if($token !== null){
8181
// to revoke a token different from the one of the currently authenticated user,

src/Providers/Discord.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function me():ResponseInterface{
8282
/**
8383
* @inheritDoc
8484
*/
85-
public function InvalidateAccessToken(AccessToken $token = null):bool{
85+
public function invalidateAccessToken(AccessToken $token = null):bool{
8686

8787
if($token === null && !$this->storage->hasAccessToken($this->serviceName)){
8888
throw new ProviderException('no token given');

src/Providers/NPROne.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function me():ResponseInterface{
8181
/**
8282
* @inheritDoc
8383
*/
84-
public function InvalidateAccessToken(AccessToken|null $token = null):bool{
84+
public function invalidateAccessToken(AccessToken|null $token = null):bool{
8585

8686
if($token === null && !$this->storage->hasAccessToken($this->serviceName)){
8787
throw new ProviderException('no token given');

src/Providers/Stripe.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function me():ResponseInterface{
6464
/**
6565
* @inheritDoc
6666
*/
67-
public function InvalidateAccessToken(AccessToken|null $token = null):bool{
67+
public function invalidateAccessToken(AccessToken|null $token = null):bool{
6868

6969
if($token === null && !$this->storage->hasAccessToken($this->serviceName)){
7070
throw new ProviderException('no token given');

src/Providers/Twitch.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function me():ResponseInterface{
131131
/**
132132
* @inheritDoc
133133
*/
134-
public function InvalidateAccessToken(AccessToken|null $token = null):bool{
134+
public function invalidateAccessToken(AccessToken|null $token = null):bool{
135135

136136
if($token === null && !$this->storage->hasAccessToken($this->serviceName)){
137137
throw new ProviderException('no token given');

src/Providers/Vimeo.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function me():ResponseInterface{
8888
/**
8989
* @inheritDoc
9090
*/
91-
public function InvalidateAccessToken(AccessToken|null $token = null):bool{
91+
public function invalidateAccessToken(AccessToken|null $token = null):bool{
9292

9393
if($token !== null){
9494
// to revoke a token different from the one of the currently authenticated user,

tests/Providers/DummyOAuth1Provider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class DummyOAuth1Provider extends OAuth1Provider implements TokenInvalidat
3232
/**
3333
* @inheritDoc
3434
*/
35-
public function InvalidateAccessToken(AccessToken $token = null):bool{
35+
public function invalidateAccessToken(AccessToken $token = null):bool{
3636

3737
if($token === null && !$this->storage->hasAccessToken($this->serviceName)){
3838
throw new ProviderException('no token given');

tests/Providers/DummyOAuth2Provider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class DummyOAuth2Provider extends OAuth2Provider implements ClientCredenti
3232
/**
3333
* @inheritDoc
3434
*/
35-
public function InvalidateAccessToken(AccessToken $token = null):bool{
35+
public function invalidateAccessToken(AccessToken $token = null):bool{
3636

3737
if($token === null && !$this->storage->hasAccessToken($this->serviceName)){
3838
throw new ProviderException('no token given');

tests/Providers/Unit/OAuthProviderUnitTestAbstract.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function testTokenInvalidate():void{
9797
$this->storage->storeAccessToken(new AccessToken(['expires' => 42]), $this->provider->serviceName);
9898

9999
$this::assertTrue($this->storage->hasAccessToken($this->provider->serviceName));
100-
$this::assertTrue($this->provider->InvalidateAccessToken());
100+
$this::assertTrue($this->provider->invalidateAccessToken());
101101
$this::assertFalse($this->storage->hasAccessToken($this->provider->serviceName));
102102
}
103103

0 commit comments

Comments
 (0)