diff --git a/examples/src/Repositories/ScopeRepository.php b/examples/src/Repositories/ScopeRepository.php index bfe5c93be..e208406d7 100644 --- a/examples/src/Repositories/ScopeRepository.php +++ b/examples/src/Repositories/ScopeRepository.php @@ -24,7 +24,7 @@ class ScopeRepository implements ScopeRepositoryInterface /** * {@inheritdoc} */ - public function getScopeEntityByIdentifier($scopeIdentifier): ?ScopeEntityInterface + public function getScopeEntityByIdentifier(string $identifier): ?ScopeEntityInterface { $scopes = [ 'basic' => [ @@ -35,12 +35,12 @@ public function getScopeEntityByIdentifier($scopeIdentifier): ?ScopeEntityInterf ], ]; - if (array_key_exists($scopeIdentifier, $scopes) === false) { + if (array_key_exists($identifier, $scopes) === false) { return null; } $scope = new ScopeEntity(); - $scope->setIdentifier($scopeIdentifier); + $scope->setIdentifier($identifier); return $scope; } @@ -55,7 +55,7 @@ public function finalizeScopes( $userIdentifier = null, $authCodeId = null ): array { - // Example of programatically modifying the final scope of the access token + // Example of programmatically modifying the final scope of the access token if ((int) $userIdentifier === 1) { $scope = new ScopeEntity(); $scope->setIdentifier('email');