/** * {@inheritdoc} */ public function getAvailableScopes(ClientInterface $client = null, ServerRequestInterface $request = null) { return $client instanceof ScopeExtensionInterface && null !== $client->getAvailableScopes($request) ? $client->getAvailableScopes($request) : $this->getScopes(); }