Skip to content

Commit 7e7a202

Browse files
committed
refactor: removed unnecessary multi-line array declaration
1 parent 81ae65a commit 7e7a202

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/VerifyAccessToken.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ public function handle($request, Closure $next, ...$scopes)
9898
throw new InvalidInputException('No Bearer token in the Authorization header present');
9999
}
100100

101-
// Now verify the user provided access token
102101
try {
103102
$result = $this->getIntrospect($bearerToken);
104103

@@ -108,9 +107,7 @@ public function handle($request, Closure $next, ...$scopes)
108107

109108
if ($scopes != null) {
110109
if (!\is_array($scopes)) {
111-
$scopes = [
112-
$scopes,
113-
];
110+
$scopes = [$scopes];
114111
}
115112

116113
$scopesForToken = \explode(' ', $result['scope']);

0 commit comments

Comments
 (0)