@@ -2,15 +2,15 @@ |
||
| 2 | 2 | |
| 3 | 3 | require __DIR__ . '/../vendor/autoload.php'; |
| 4 | 4 | |
| 5 | -Amp\Loop::run(function () { |
|
| 6 | - \ensign_signal('wow', function ($sigNo) { |
|
| 5 | +Amp\Loop::run(function() { |
|
| 6 | + \ensign_signal('wow', function($sigNo) { |
|
| 7 | 7 | echo \sprintf('System signal "%d" received.' . \PHP_EOL, $sigNo); |
| 8 | 8 | }); |
| 9 | 9 | |
| 10 | 10 | $signals = \pcntl_signal_list(['SIGINT']); |
| 11 | 11 | |
| 12 | 12 | foreach ($signals as $signal) { |
| 13 | - \ensign_signal($signal, function ($sigNo) { |
|
| 13 | + \ensign_signal($signal, function($sigNo) { |
|
| 14 | 14 | yield 'wow' => $sigNo; |
| 15 | 15 | }); |
| 16 | 16 | } |
@@ -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 | |
@@ -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 | |
@@ -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 | |
@@ -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 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | { |
| 60 | 60 | $this->handlers[$signal] = $handler instanceof Handler ? $handler : Handler::recognize($handler); |
| 61 | 61 | |
| 62 | - $this->processor->interrupt($signal, function (...$arguments) use ($signal) { |
|
| 62 | + $this->processor->interrupt($signal, function(...$arguments) use ($signal) { |
|
| 63 | 63 | return $this->dispatch($signal, ...$arguments); |
| 64 | 64 | }); |
| 65 | 65 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | * file that was distributed with this source code. |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -declare(strict_types = 1); |
|
| 10 | +declare(strict_types=1); |
|
| 11 | 11 | |
| 12 | 12 | namespace PHPinnacle\Ensign; |
| 13 | 13 | |
@@ -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 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | */ |
| 54 | 54 | public static function error(\Throwable $error): self |
| 55 | 55 | { |
| 56 | - return new self(function () use ($error) { |
|
| 56 | + return new self(function() use ($error) { |
|
| 57 | 57 | throw $error; |
| 58 | 58 | }); |
| 59 | 59 | } |
@@ -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\Resolver; |
| 14 | 14 | |
@@ -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\Resolver; |
| 14 | 14 | |