mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-03 01:39:15 +02:00
apply StyleCI recommendation
This commit is contained in:
parent
a203e6322b
commit
7b2f0ff302
3 changed files with 5 additions and 5 deletions
|
@ -171,8 +171,8 @@ class TrafficLimiter extends AbstractPersistence
|
|||
|
||||
// this hash is used as an array key, hence a shorter algo is used
|
||||
$hash = self::getHash('sha256');
|
||||
$now = time();
|
||||
$tl = (int) self::$_store->getValue('traffic_limiter', $hash);
|
||||
$now = time();
|
||||
$tl = (int) self::$_store->getValue('traffic_limiter', $hash);
|
||||
self::$_store->purgeValues('traffic_limiter', $now - self::$_limit);
|
||||
if ($tl > 0 && ($tl + self::$_limit >= $now)) {
|
||||
$result = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue