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