Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Minor updates for resolving errors on tests run
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanko-dev committed Sep 30, 2019
1 parent c283bba commit 0bda8d0
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function __construct(
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function getUserId()
{
Expand All @@ -108,7 +108,7 @@ public function getUserId()
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function getUserType()
{
Expand Down Expand Up @@ -137,7 +137,7 @@ private function isTokenExpired(Token $token): bool
return false;
}

if ($this->date->timestamp($token->getCreatedAt()) < ($this->date->gmtTimestamp() - $tokenTtl * 3600)) {
if (strtotime($token->getCreatedAt()) < ($this->date->gmtTimestamp() - $tokenTtl * 3600)) {
return true;
}

Expand Down Expand Up @@ -187,6 +187,8 @@ protected function processRequest()
}

/**
* Set user data based on user type received from token data.
*
* @param Token $token
* @return void
*/
Expand Down

0 comments on commit 0bda8d0

Please sign in to comment.