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