| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 2 | protected function extractData($responseLine, Server $server) |
|
| 18 | { |
||
| 19 | 2 | list(, $dataLength) = explode(' ', $responseLine); |
|
| 20 | 2 | $rawData = $server->readData($dataLength); |
|
| 21 | |||
| 22 | try { |
||
| 23 | 2 | return Yaml::parse($rawData); |
|
| 24 | 1 | } catch (ParseException $exception) { |
|
| 25 | 1 | throw Exception::wrap($exception); |
|
| 26 | } |
||
| 27 | } |
||
| 28 | } |
||
| 29 |