Skip to content

Commit

Permalink
use empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
akhil1508 committed Dec 13, 2022
1 parent 935a4f9 commit 299d3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/TokenService.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function refreshTokens(): bool
$refreshTokenExpiresIn = $this->session->get('oidc_refresh_token_expires_in');
$refreshToken = $this->session->get('oidc_refresh_token');
// If refresh token doesn't exist or refresh token has expired
if (!$refreshToken || (!empty($refreshTokenExpiresIn) && $now > $refreshTokenExpiresIn)) {
if (empty($refreshToken) || (!empty($refreshTokenExpiresIn) && $now > $refreshTokenExpiresIn)) {
return false;
}

Expand Down

0 comments on commit 299d3e1

Please sign in to comment.