| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 8 |
| Ratio | 100 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 1 | View Code Duplication | public function increase(array $values) |
| 21 | { |
||
| 22 | 1 | $pipeline = $this->getRedis()->pipeline(['fire-and-forget' => true]); |
|
| 23 | 1 | foreach ($values as $key => $value) { |
|
| 24 | 1 | $pipeline->zincrby(self::KEY, $value, $key); |
|
| 25 | } |
||
| 26 | 1 | $pipeline->execute(); |
|
| 27 | 1 | } |
|
| 28 | |||
| 62 |