@@ -36,12 +36,12 @@ public function tryWrite(string $bytes): int
3636 $ data = $ this ->remainder . $ bytes ;
3737
3838 $ dataLength = strlen ($ data );
39- while ($ dataLength >= CHUNK_SIZE ) {
40- $ chunk = substr ($ data , 0 , CHUNK_SIZE );
41- $ data = substr ($ data , CHUNK_SIZE );
42- $ dataLength -= CHUNK_SIZE ;
39+ while ($ dataLength >= namespace \ CHUNK_SIZE ) {
40+ $ chunk = substr ($ data , 0 , namespace \ CHUNK_SIZE );
41+ $ data = substr ($ data , namespace \ CHUNK_SIZE );
42+ $ dataLength -= namespace \ CHUNK_SIZE ;
4343
44- $ encoded = encode ($ chunk , $ this ->variant , $ this ->padding ) . LINE_ENDING ;
44+ $ encoded = namespace \ encode ($ chunk , $ this ->variant , $ this ->padding ) . namespace \ LINE_ENDING ;
4545 $ this ->handle ->writeAll ($ encoded );
4646 }
4747
@@ -63,7 +63,7 @@ public function write(string $bytes, CancellationTokenInterface $cancellation =
6363 public function flush (): void
6464 {
6565 if ($ this ->remainder !== '' ) {
66- $ encoded = encode ($ this ->remainder , $ this ->variant , $ this ->padding ) . LINE_ENDING ;
66+ $ encoded = namespace \ encode ($ this ->remainder , $ this ->variant , $ this ->padding ) . namespace \ LINE_ENDING ;
6767 $ this ->remainder = '' ;
6868 $ this ->handle ->writeAll ($ encoded );
6969 }
0 commit comments