This repository was archived by the owner on Mar 23, 2024. It is now read-only.
File tree 11 files changed +11
-11
lines changed
11 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ interface TokenInvalidate{
27
27
*
28
28
* @throws \chillerlan\OAuth\Providers\ProviderException
29
29
*/
30
- public function InvalidateAccessToken (AccessToken |null $ token = null ):bool ;
30
+ public function invalidateAccessToken (AccessToken |null $ token = null ):bool ;
31
31
32
32
}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public function me():ResponseInterface{
59
59
/**
60
60
* @inheritDoc
61
61
*/
62
- public function InvalidateAccessToken (AccessToken |null $ token = null ):bool {
62
+ public function invalidateAccessToken (AccessToken |null $ token = null ):bool {
63
63
64
64
if ($ token === null && !$ this ->storage ->hasAccessToken ($ this ->serviceName )){
65
65
throw new ProviderException ('no token given ' );
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public function me():ResponseInterface{
75
75
/**
76
76
* @inheritDoc
77
77
*/
78
- public function InvalidateAccessToken (AccessToken |null $ token = null ):bool {
78
+ public function invalidateAccessToken (AccessToken |null $ token = null ):bool {
79
79
80
80
if ($ token !== null ){
81
81
// to revoke a token different from the one of the currently authenticated user,
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public function me():ResponseInterface{
82
82
/**
83
83
* @inheritDoc
84
84
*/
85
- public function InvalidateAccessToken (AccessToken $ token = null ):bool {
85
+ public function invalidateAccessToken (AccessToken $ token = null ):bool {
86
86
87
87
if ($ token === null && !$ this ->storage ->hasAccessToken ($ this ->serviceName )){
88
88
throw new ProviderException ('no token given ' );
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public function me():ResponseInterface{
81
81
/**
82
82
* @inheritDoc
83
83
*/
84
- public function InvalidateAccessToken (AccessToken |null $ token = null ):bool {
84
+ public function invalidateAccessToken (AccessToken |null $ token = null ):bool {
85
85
86
86
if ($ token === null && !$ this ->storage ->hasAccessToken ($ this ->serviceName )){
87
87
throw new ProviderException ('no token given ' );
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public function me():ResponseInterface{
64
64
/**
65
65
* @inheritDoc
66
66
*/
67
- public function InvalidateAccessToken (AccessToken |null $ token = null ):bool {
67
+ public function invalidateAccessToken (AccessToken |null $ token = null ):bool {
68
68
69
69
if ($ token === null && !$ this ->storage ->hasAccessToken ($ this ->serviceName )){
70
70
throw new ProviderException ('no token given ' );
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public function me():ResponseInterface{
131
131
/**
132
132
* @inheritDoc
133
133
*/
134
- public function InvalidateAccessToken (AccessToken |null $ token = null ):bool {
134
+ public function invalidateAccessToken (AccessToken |null $ token = null ):bool {
135
135
136
136
if ($ token === null && !$ this ->storage ->hasAccessToken ($ this ->serviceName )){
137
137
throw new ProviderException ('no token given ' );
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public function me():ResponseInterface{
88
88
/**
89
89
* @inheritDoc
90
90
*/
91
- public function InvalidateAccessToken (AccessToken |null $ token = null ):bool {
91
+ public function invalidateAccessToken (AccessToken |null $ token = null ):bool {
92
92
93
93
if ($ token !== null ){
94
94
// to revoke a token different from the one of the currently authenticated user,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ final class DummyOAuth1Provider extends OAuth1Provider implements TokenInvalidat
32
32
/**
33
33
* @inheritDoc
34
34
*/
35
- public function InvalidateAccessToken (AccessToken $ token = null ):bool {
35
+ public function invalidateAccessToken (AccessToken $ token = null ):bool {
36
36
37
37
if ($ token === null && !$ this ->storage ->hasAccessToken ($ this ->serviceName )){
38
38
throw new ProviderException ('no token given ' );
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ final class DummyOAuth2Provider extends OAuth2Provider implements ClientCredenti
32
32
/**
33
33
* @inheritDoc
34
34
*/
35
- public function InvalidateAccessToken (AccessToken $ token = null ):bool {
35
+ public function invalidateAccessToken (AccessToken $ token = null ):bool {
36
36
37
37
if ($ token === null && !$ this ->storage ->hasAccessToken ($ this ->serviceName )){
38
38
throw new ProviderException ('no token given ' );
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public function testTokenInvalidate():void{
97
97
$ this ->storage ->storeAccessToken (new AccessToken (['expires ' => 42 ]), $ this ->provider ->serviceName );
98
98
99
99
$ this ::assertTrue ($ this ->storage ->hasAccessToken ($ this ->provider ->serviceName ));
100
- $ this ::assertTrue ($ this ->provider ->InvalidateAccessToken ());
100
+ $ this ::assertTrue ($ this ->provider ->invalidateAccessToken ());
101
101
$ this ::assertFalse ($ this ->storage ->hasAccessToken ($ this ->provider ->serviceName ));
102
102
}
103
103
You can’t perform that action at this time.
0 commit comments