Skip to content

Commit 92c6519

Browse files
committed
Fix styleci issues
1 parent 7795ca2 commit 92c6519

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Exception/OAuthServerException.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
use function htmlspecialchars;
2121
use function http_build_query;
2222
use function sprintf;
23-
use function strpos;
24-
use function strstr;
2523

2624
class OAuthServerException extends Exception
2725
{

src/Grant/AbstractGrant.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ protected function getClientEntityOrFail(string $clientId, ServerRequestInterfac
197197
* the Http Basic Authorization header
198198
*
199199
* @return array{0:non-empty-string,1:string}
200+
*
200201
* @throws OAuthServerException
201202
*/
202203
protected function getClientCredentials(ServerRequestInterface $request): array
@@ -281,14 +282,15 @@ private function convertScopesQueryStringToArray(string $scopes): array
281282
* @param array<array-key, mixed> $request
282283
*
283284
* @return non-empty-string|null
285+
*
284286
* @throws OAuthServerException
285287
*/
286288
private static function parseParam(string $parameter, array $request, ?string $default = null): ?string
287289
{
288290
$value = $request[$parameter] ?? '';
289291

290292
if (is_scalar($value)) {
291-
$value = trim((string)$value);
293+
$value = trim((string) $value);
292294
} else {
293295
throw OAuthServerException::invalidRequest($parameter);
294296
}
@@ -308,6 +310,7 @@ private static function parseParam(string $parameter, array $request, ?string $d
308310
* Retrieve request parameter.
309311
*
310312
* @return non-empty-string|null
313+
*
311314
* @throws OAuthServerException
312315
*/
313316
protected function getRequestParameter(string $parameter, ServerRequestInterface $request, ?string $default = null): ?string
@@ -358,6 +361,7 @@ protected function getBasicAuthCredentials(ServerRequestInterface $request): arr
358361
* Retrieve query string parameter.
359362
*
360363
* @return non-empty-string|null
364+
*
361365
* @throws OAuthServerException
362366
*/
363367
protected function getQueryStringParameter(string $parameter, ServerRequestInterface $request, ?string $default = null): ?string
@@ -369,6 +373,7 @@ protected function getQueryStringParameter(string $parameter, ServerRequestInter
369373
* Retrieve cookie parameter.
370374
*
371375
* @return non-empty-string|null
376+
*
372377
* @throws OAuthServerException
373378
*/
374379
protected function getCookieParameter(string $parameter, ServerRequestInterface $request, ?string $default = null): ?string
@@ -380,6 +385,7 @@ protected function getCookieParameter(string $parameter, ServerRequestInterface
380385
* Retrieve server parameter.
381386
*
382387
* @return non-empty-string|null
388+
*
383389
* @throws OAuthServerException
384390
*/
385391
protected function getServerParameter(string $parameter, ServerRequestInterface $request, ?string $default = null): ?string

0 commit comments

Comments
 (0)