Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
57 | 12 | private function processBuffer(): string |
|
58 | { |
||
59 | 12 | $length = strlen($this->buffer); |
|
60 | 12 | $buffer = base64_encode(substr($this->buffer, 0, $length - $length % 3)); |
|
61 | 12 | $this->buffer = substr($this->buffer, $length - $length % 3); |
|
62 | |||
63 | 12 | return $buffer; |
|
64 | } |
||
65 | } |
||
66 |