| Conditions | 3 |
| Paths | 4 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | protected function write(string $data):void{ |
||
| 32 | |||
| 33 | for($i = 0; $i + 1 < $this->strlen; $i += 2){ |
||
| 34 | $this->bitBuffer->put($this->getCharCode($data[$i]) * 45 + $this->getCharCode($data[$i + 1]), 11); |
||
| 35 | } |
||
| 36 | |||
| 37 | if($i < $this->strlen){ |
||
| 38 | $this->bitBuffer->put($this->getCharCode($data[$i]), 6); |
||
| 39 | } |
||
| 57 |