| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 5 | public function read(Buffer $buffer) |
|
| 22 | { |
||
| 23 | 5 | parent::read($buffer); |
|
| 24 | 5 | $data = rtrim($buffer->readString($this->dataSize * $this->dataCount)); |
|
|
|
|||
| 25 | |||
| 26 | 5 | foreach (explode(self::DELIMITER, $data) as $item) { |
|
| 27 | 5 | list($key, $value) = explode('=', $item); |
|
| 28 | 5 | $this->data[$key] = trim($value); |
|
| 29 | } |
||
| 46 |