@@ -25,11 +25,11 @@ |
||
25 | 25 | public function __construct(ReadableStreamInterface $stream) |
26 | 26 | { |
27 | 27 | $this->stream = $stream; |
28 | - $this->stream->on('data', function ($data): void { |
|
28 | + $this->stream->on('data', function($data): void { |
|
29 | 29 | $this->buffer .= $data; |
30 | 30 | $this->emit('data', [$this->processBuffer()]); |
31 | 31 | }); |
32 | - $this->stream->once('end', function (): void { |
|
32 | + $this->stream->once('end', function(): void { |
|
33 | 33 | $this->emit('data', [\base64_decode($this->buffer, true)]); |
34 | 34 | $this->emit('end'); |
35 | 35 | }); |
@@ -25,11 +25,11 @@ |
||
25 | 25 | public function __construct(ReadableStreamInterface $stream) |
26 | 26 | { |
27 | 27 | $this->stream = $stream; |
28 | - $this->stream->on('data', function ($data): void { |
|
28 | + $this->stream->on('data', function($data): void { |
|
29 | 29 | $this->buffer .= $data; |
30 | 30 | $this->emit('data', [$this->processBuffer()]); |
31 | 31 | }); |
32 | - $this->stream->once('end', function (): void { |
|
32 | + $this->stream->once('end', function(): void { |
|
33 | 33 | $this->emit('data', [\base64_encode($this->buffer)]); |
34 | 34 | $this->emit('end'); |
35 | 35 | }); |