| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | protected function periodsSync() |
||
| 13 | { |
||
| 14 | foreach ($this->periods as $period) { |
||
| 15 | $periodKey = $this->keys->period($period); |
||
| 16 | |||
| 17 | if ($this->noExpiration($periodKey)) { |
||
| 18 | $expireInSeconds = $this->newExpiration($period); |
||
| 19 | $this->redis->incrby($periodKey . '_total', 0); |
||
| 20 | $this->redis->zincrby($periodKey, 0, 0); |
||
| 21 | $this->redis->expire($periodKey, $expireInSeconds); |
||
| 22 | $this->redis->expire($periodKey . '_total', $expireInSeconds); |
||
| 23 | } |
||
| 62 |