mirror of
https://github.com/grocy/grocy.git
synced 2025-10-13 00:54:38 +00:00
Applied PHP-CS-Fixer rules
This commit is contained in:
@@ -13,7 +13,7 @@ class SessionService extends BaseService
|
||||
|
||||
$expires = date('Y-m-d H:i:s', intval(time() + 2592000));
|
||||
|
||||
// Default is that sessions expire in 30 days
|
||||
// Default is that sessions expire in 30 days
|
||||
if ($stayLoggedInPermanently === true)
|
||||
{
|
||||
$expires = date('Y-m-d H:i:s', PHP_INT_SIZE == 4 ? PHP_INT_MAX : PHP_INT_MAX >> 32); // Never
|
||||
@@ -61,7 +61,7 @@ class SessionService extends BaseService
|
||||
|
||||
if ($sessionRow !== null)
|
||||
{
|
||||
// This should not change the database file modification time as this is used
|
||||
// This should not change the database file modification time as this is used
|
||||
// to determine if REALLY something has changed
|
||||
$dbModTime = $this->getDatabaseService()->GetDbChangedTime();
|
||||
$sessionRow->update([
|
||||
@@ -75,9 +75,7 @@ class SessionService extends BaseService
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function RemoveSession($sessionKey)
|
||||
@@ -89,5 +87,4 @@ class SessionService extends BaseService
|
||||
{
|
||||
return RandomString(50);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user