@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace WyriHaximus\React\Stream\Hash; |
| 4 | 4 | |
@@ -27,11 +27,11 @@ discard block |
||
| 27 | 27 | { |
| 28 | 28 | $this->stream = $stream; |
| 29 | 29 | $this->context = hash_init($hash, $options, $key); |
| 30 | - $this->stream->on('data', function ($data) { |
|
| 30 | + $this->stream->on('data', function($data) { |
|
| 31 | 31 | hash_update($this->context, $data); |
| 32 | 32 | $this->emit('data', [$data]); |
| 33 | 33 | }); |
| 34 | - $this->stream->once('close', function () { |
|
| 34 | + $this->stream->once('close', function() { |
|
| 35 | 35 | $this->emit('close'); |
| 36 | 36 | $this->emit('hash', [ |
| 37 | 37 | hash_final($this->context), |