@@ -197,6 +197,7 @@ protected function getClientEntityOrFail(string $clientId, ServerRequestInterfac
197
197
* the Http Basic Authorization header
198
198
*
199
199
* @return array{0:non-empty-string,1:string}
200
+ *
200
201
* @throws OAuthServerException
201
202
*/
202
203
protected function getClientCredentials (ServerRequestInterface $ request ): array
@@ -281,14 +282,15 @@ private function convertScopesQueryStringToArray(string $scopes): array
281
282
* @param array<array-key, mixed> $request
282
283
*
283
284
* @return non-empty-string|null
285
+ *
284
286
* @throws OAuthServerException
285
287
*/
286
288
private static function parseParam (string $ parameter , array $ request , ?string $ default = null ): ?string
287
289
{
288
290
$ value = $ request [$ parameter ] ?? '' ;
289
291
290
292
if (is_scalar ($ value )) {
291
- $ value = trim ((string )$ value );
293
+ $ value = trim ((string ) $ value );
292
294
} else {
293
295
throw OAuthServerException::invalidRequest ($ parameter );
294
296
}
@@ -308,6 +310,7 @@ private static function parseParam(string $parameter, array $request, ?string $d
308
310
* Retrieve request parameter.
309
311
*
310
312
* @return non-empty-string|null
313
+ *
311
314
* @throws OAuthServerException
312
315
*/
313
316
protected function getRequestParameter (string $ parameter , ServerRequestInterface $ request , ?string $ default = null ): ?string
@@ -358,6 +361,7 @@ protected function getBasicAuthCredentials(ServerRequestInterface $request): arr
358
361
* Retrieve query string parameter.
359
362
*
360
363
* @return non-empty-string|null
364
+ *
361
365
* @throws OAuthServerException
362
366
*/
363
367
protected function getQueryStringParameter (string $ parameter , ServerRequestInterface $ request , ?string $ default = null ): ?string
@@ -369,6 +373,7 @@ protected function getQueryStringParameter(string $parameter, ServerRequestInter
369
373
* Retrieve cookie parameter.
370
374
*
371
375
* @return non-empty-string|null
376
+ *
372
377
* @throws OAuthServerException
373
378
*/
374
379
protected function getCookieParameter (string $ parameter , ServerRequestInterface $ request , ?string $ default = null ): ?string
@@ -380,6 +385,7 @@ protected function getCookieParameter(string $parameter, ServerRequestInterface
380
385
* Retrieve server parameter.
381
386
*
382
387
* @return non-empty-string|null
388
+ *
383
389
* @throws OAuthServerException
384
390
*/
385
391
protected function getServerParameter (string $ parameter , ServerRequestInterface $ request , ?string $ default = null ): ?string
0 commit comments