Skip to content

Commit 8cceaee

Browse files
author
Mohammed Karim
committed
CI Coding standards.
1 parent 1eac5c1 commit 8cceaee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/Throttle/Throttler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ public function check(string $key, int $capacity, int $seconds, int $cost = 1):
159159
// How many seconds till a new token is available.
160160
// We must have a minimum wait of 1 second for a new token.
161161
// Primarily stored to allow devs to report back to users.
162-
$newTokenAvailable = (1/$rate) - $elapsed;
163-
$this->tokenTime = max(1, $newTokenAvailable);
162+
$newTokenAvailable = (1 / $rate) - $elapsed;
163+
$this->tokenTime = max(1, $newTokenAvailable);
164164

165165
// Add tokens based up on number per second that
166166
// should be refilled, then checked against capacity

0 commit comments

Comments
 (0)