Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | 5 | public function write(Buffer $buffer) |
|
30 | { |
||
31 | 5 | if ($this->data) { |
|
32 | 1 | $data = []; |
|
33 | 1 | foreach ($this->data as $key => $value) { |
|
34 | 1 | $data[] = sprintf('%s=%d%c', $key, $value, 0); |
|
35 | } |
||
36 | 1 | $data = join(self::DELIMITER, $data); |
|
37 | 1 | $this->dataCount = strlen($data); |
|
38 | 1 | parent::write($buffer); |
|
39 | 1 | $buffer->writeString($data); |
|
40 | } |
||
43 |