@@ -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 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | { |
26 | 26 | $this->stream = $stream; |
27 | 27 | $this->context = hash_init($algo, $options, $key); |
28 | - $this->stream->once('close', function () use ($algo) { |
|
28 | + $this->stream->once('close', function() use ($algo) { |
|
29 | 29 | $this->emit('hash', [ |
30 | 30 | hash_final($this->context), |
31 | 31 | $algo, |
@@ -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 | |
@@ -29,11 +29,11 @@ discard block |
||
29 | 29 | { |
30 | 30 | $this->stream = $stream; |
31 | 31 | $this->context = hash_init($algo, $options, $key); |
32 | - $this->stream->on('data', function ($data) { |
|
32 | + $this->stream->on('data', function($data) { |
|
33 | 33 | hash_update($this->context, $data); |
34 | 34 | $this->emit('data', [$data]); |
35 | 35 | }); |
36 | - $this->stream->once('close', function () use ($algo) { |
|
36 | + $this->stream->once('close', function() use ($algo) { |
|
37 | 37 | $this->emit('close'); |
38 | 38 | $this->emit('hash', [ |
39 | 39 | hash_final($this->context), |