@@ -5,10 +5,10 @@ discard block |
||
5 | 5 | |
6 | 6 | require __DIR__ . '/../vendor/autoload.php'; |
7 | 7 | |
8 | -Amp\Loop::run(function () { |
|
8 | +Amp\Loop::run(function() { |
|
9 | 9 | $dispatcher = new Dispatcher(); |
10 | 10 | $dispatcher |
11 | - ->register('emit', function (string $string, int $num, int $delay = 100) { |
|
11 | + ->register('emit', function(string $string, int $num, int $delay = 100) { |
|
12 | 12 | for ($i = 0; $i < $num; $i++) { |
13 | 13 | echo $string; |
14 | 14 | |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | }) |
20 | 20 | ; |
21 | 21 | |
22 | - $times = \rand(5, 10); |
|
22 | + $times = \rand(5, 10); |
|
23 | 23 | $actionOne = $dispatcher->dispatch('emit', '-', $times, 100); |
24 | 24 | $actionTwo = $dispatcher->dispatch('emit', '+', $times + \rand(5, 10), 100); |
25 | 25 |
@@ -8,7 +8,7 @@ |
||
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\Exception; |
14 | 14 |