| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function getMeasurements($prefix, array $keys) { |
||
| 35 | $measurements = []; |
||
| 36 | $prefixedKeys = array_map(function($key) use ($prefix) { |
||
| 37 | return $prefix.':'.$key; |
||
| 38 | }, $keys); |
||
| 39 | foreach ($this->redis->mget($prefixedKeys) as $i => $value) { |
||
| 40 | $measurements[$keys[$i]] = $value !== false ? (float)$value : 'Nan'; |
||
| 41 | } |
||
| 42 | return $measurements; |
||
| 43 | } |
||
| 44 | } |
||
| 45 |