| Conditions | 2 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | public function result() |
||
| 49 | { |
||
| 50 | return $this->perform($this->getCanceller())->then(function (Response $response) { |
||
| 51 | $kvs = new KVs( |
||
| 52 | $this->path, |
||
| 53 | $response->getStatusCode() === 200 |
||
| 54 | ? $this->decodeResponse((string)$response->getBody()) |
||
| 55 | : [] |
||
| 56 | ); |
||
| 57 | |||
| 58 | $this->assignVIndex($kvs, $response); |
||
| 59 | $this->setVIndex($kvs->getVersion()); |
||
| 60 | |||
| 61 | return $kvs; |
||
| 62 | }); |
||
| 65 |