@@ -33,11 +33,11 @@ |
||
33 | 33 | $options[] = $key; |
34 | 34 | } |
35 | 35 | $context = \hash_init(...$options); |
36 | - $this->stream->on('data', function ($data) use ($context): void { |
|
36 | + $this->stream->on('data', function($data) use ($context): void { |
|
37 | 37 | \hash_update($context, $data); |
38 | 38 | $this->emit('data', [$data]); |
39 | 39 | }); |
40 | - $this->stream->once('end', function () use ($context, $algo): void { |
|
40 | + $this->stream->once('end', function() use ($context, $algo): void { |
|
41 | 41 | $hash = \hash_final($context, true); |
42 | 42 | if (\count($this->listeners('hash')) > 0) { |
43 | 43 | $this->emit('hash', [ |