| Conditions | 3 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 28 | public function get($key, $default = null) |
||
| 29 | { |
||
| 30 | 2 | return $this->cache->get($key, $default)->then(function ($result) use ($default) { |
|
| 31 | 2 | if ($result === null || $result === $default) { |
|
| 32 | 1 | return $result; |
|
| 33 | } |
||
| 34 | |||
| 35 | 1 | return msgpack_unpack($result); |
|
| 36 | 2 | }); |
|
| 59 |