@@ -25,8 +25,8 @@ discard block |
||
| 25 | 25 | { |
| 26 | 26 | return |
| 27 | 27 | new Container( |
| 28 | - spawnerCreatorCb: $this->getSpawnerCreator(), |
|
| 29 | - definitions: $this->registry->load(), |
|
| 28 | + spawnerCreatorCb : $this->getSpawnerCreator(), |
|
| 29 | + definitions : $this->registry->load(), |
|
| 30 | 30 | ); |
| 31 | 31 | } |
| 32 | 32 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | return |
| 36 | 36 | $this->spawnerCreator |
| 37 | 37 | ?? |
| 38 | - static function (ContainerInterface $container): IServiceSpawner { |
|
| 38 | + static function(ContainerInterface $container): IServiceSpawner { |
|
| 39 | 39 | return |
| 40 | 40 | new ServiceSpawner($container); |
| 41 | 41 | }; |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | */ |
| 74 | 74 | public function createHandler(IDriver $driver, ILoop $loop): Closure |
| 75 | 75 | { |
| 76 | - return static function () use ($driver, $loop): void { |
|
| 76 | + return static function() use ($driver, $loop): void { |
|
| 77 | 77 | $driver->interrupt(); |
| 78 | 78 | $loop->stop(); |
| 79 | 79 | }; |
@@ -45,13 +45,13 @@ |
||
| 45 | 45 | // Automatically run loop at the end of script, unless already started or stopped explicitly. |
| 46 | 46 | // @codeCoverageIgnoreStart |
| 47 | 47 | $hasRun = false; |
| 48 | - EventLoop::defer(static function () use (&$hasRun): void { |
|
| 48 | + EventLoop::defer(static function() use (&$hasRun): void { |
|
| 49 | 49 | $hasRun = true; |
| 50 | 50 | }); |
| 51 | 51 | |
| 52 | 52 | /** @psalm-suppress UnsupportedPropertyReferenceUsage */ |
| 53 | 53 | $stopped = &self::$stopped; |
| 54 | - register_shutdown_function(static function () use (&$hasRun, &$stopped): void { |
|
| 54 | + register_shutdown_function(static function() use (&$hasRun, &$stopped): void { |
|
| 55 | 55 | // Don't run if we're coming from a fatal error (uncaught exception). |
| 56 | 56 | if (self::error()) { // See [889ad594-ca28-4770-bb38-fd5bd8cb1777]. |
| 57 | 57 | return; |