@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * file that was distributed with this source code. |
9 | 9 | */ |
10 | 10 | |
11 | -declare(strict_types = 1); |
|
11 | +declare(strict_types=1); |
|
12 | 12 | |
13 | 13 | namespace PHPinnacle\Ensign; |
14 | 14 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | public function __construct(Executor $executor = null) |
40 | 40 | { |
41 | 41 | $this->executor = $executor ?: new Executor\SimpleExecutor; |
42 | - $this->resolver = function (string $interrupt, array $arguments) { |
|
42 | + $this->resolver = function(string $interrupt, array $arguments) { |
|
43 | 43 | if (!isset($this->interruptions[$interrupt])) { |
44 | 44 | throw new Exception\UnknownInterrupt($interrupt); |
45 | 45 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function execute(callable $handler, array $arguments): Promise |
69 | 69 | { |
70 | - return Amp\call(function () use ($handler, $arguments) { |
|
70 | + return Amp\call(function() use ($handler, $arguments) { |
|
71 | 71 | $result = $this->executor->execute($handler, $arguments); |
72 | 72 | |
73 | 73 | if ($result instanceof \Generator) { |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * file that was distributed with this source code. |
9 | 9 | */ |
10 | 10 | |
11 | -declare(strict_types = 1); |
|
11 | +declare(strict_types=1); |
|
12 | 12 | |
13 | 13 | use Amp\Promise; |
14 | 14 | use PHPinnacle\Ensign\Dispatcher; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | continue; |
57 | 57 | } |
58 | 58 | |
59 | - $handler = static function (string $watcherId, int $sigNo, $sigInfo = null) use ($dispatcher, $signal) { |
|
59 | + $handler = static function(string $watcherId, int $sigNo, $sigInfo = null) use ($dispatcher, $signal) { |
|
60 | 60 | yield $dispatcher->dispatch($signal, $sigNo, $sigInfo, $watcherId); |
61 | 61 | }; |
62 | 62 |