Skip to content

Commit

Permalink
Renamed to isSessionActive() 😏 #58.
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Oct 13, 2017
1 parent e2da44c commit 4b30d69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Context/ApiContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,15 +273,15 @@ private function dropSessionContext()
*/
public function ensureSessionActive()
{
if ($this->isSessionExpired()) {
if ($this->isSessionActive()) {
$this->resetSession();
}
}

/**
* @return bool
*/
public function isSessionExpired(): bool
public function isSessionActive(): bool
{
if (is_null($this->sessionContext)){
return false;
Expand Down

0 comments on commit 4b30d69

Please sign in to comment.