@@ -69,7 +69,6 @@ trait OAuth2Client
6969 * return $listener;
7070 * }
7171 * ```
72- *
7372 */
7473 abstract protected function getOAuth2Listener (): ?HttpServer ;
7574
@@ -101,7 +100,6 @@ abstract protected function getOAuth2Listener(): ?HttpServer;
101100 * ]);
102101 * }
103102 * ```
104- *
105103 */
106104 abstract protected function getOAuth2Provider (): OAuth2Provider ;
107105
@@ -118,13 +116,11 @@ abstract protected function getOAuth2Flow(): int;
118116 *
119117 * Required for token signature validation. Check the provider's
120118 * `https://server.com/.well-known/openid-configuration` if unsure.
121- *
122119 */
123120 abstract protected function getOAuth2JsonWebKeySetUrl (): ?string ;
124121
125122 /**
126123 * Called when an access token is received from the OAuth 2.0 provider
127- *
128124 */
129125 abstract protected function receiveOAuth2Token (AccessTokenInterface $ token ): void ;
130126
@@ -220,7 +216,6 @@ final protected function hasAccessToken(?AccessToken &$token = null, ?array $sco
220216 * possible, flush all tokens and authorize with the provider from scratch
221217 *
222218 * This may be the only {@see OAuth2Client} method inheritors need to call.
223- *
224219 */
225220 final protected function getAccessToken (?array $ scopes = null ): AccessToken
226221 {
@@ -252,7 +247,6 @@ final protected function getAccessToken(?array $scopes = null): AccessToken
252247
253248 /**
254249 * False if one or more scopes are not granted
255- *
256250 */
257251 private function checkAccessTokenScopes (AccessToken $ token , ?array $ scopes ): bool
258252 {
@@ -263,7 +257,6 @@ private function checkAccessTokenScopes(AccessToken $token, ?array $scopes): boo
263257 /**
264258 * If an unexpired OAuth 2.0 refresh token is available, use it to get a new
265259 * access token from the provider if possible
266- *
267260 */
268261 final protected function refreshAccessToken (?AccessToken &$ token = null ): bool
269262 {
@@ -278,7 +271,6 @@ final protected function refreshAccessToken(?AccessToken &$token = null): bool
278271
279272 /**
280273 * Get an access token from the OAuth 2.0 provider
281- *
282274 */
283275 final protected function authorize (): AccessToken
284276 {
0 commit comments