@@ -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 | |
@@ -32,7 +32,7 @@ discard block |
||
| 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', [ |
@@ -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 | |
@@ -33,11 +33,11 @@ discard block |
||
| 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', [ |