@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | $receivers = $config['messenger']['receivers'] ?? []; |
| 21 | 21 | |
| 22 | 22 | foreach ($transportNames as $name) { |
| 23 | - $factories[(string) $name] = static function () use ($name, $container): ReceiverInterface { |
|
| 23 | + $factories[(string) $name] = static function() use ($name, $container): ReceiverInterface { |
|
| 24 | 24 | return $container->get((string) $name); |
| 25 | 25 | }; |
| 26 | 26 | } |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | throw new InvalidArgumentException(sprintf('A receiver named "%s" already exists as a transport name', $name)); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - $factories[(string) $name] = static function () use ($serviceName, $container): ReceiverInterface { |
|
| 33 | + $factories[(string) $name] = static function() use ($serviceName, $container): ReceiverInterface { |
|
| 34 | 34 | return $container->get($serviceName); |
| 35 | 35 | }; |
| 36 | 36 | } |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public static function __callStatic(string $name, array $arguments): MessageBusInterface |
| 37 | 37 | { |
| 38 | - if (! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 38 | + if ( ! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 39 | 39 | throw new InvalidArgumentException(\sprintf( |
| 40 | 40 | 'The first argument must be of type %s', |
| 41 | 41 | ContainerInterface::class |