@@ -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('close', function () use ($context, $algo): void { |
|
| 40 | + $this->stream->once('close', 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', [ |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $options[] = $key; |
| 33 | 33 | } |
| 34 | 34 | $this->context = \hash_init(...$options); |
| 35 | - $this->stream->once('close', function () use ($algo): void { |
|
| 35 | + $this->stream->once('close', function() use ($algo): void { |
|
| 36 | 36 | $hash = \hash_final($this->context, true); |
| 37 | 37 | if (\count($this->listeners('hash')) > 0) { |
| 38 | 38 | $this->emit('hash', [ |