@@ -61,7 +61,7 @@ |
||
61 | 61 | */ |
62 | 62 | public static function __callStatic(string $name, array $arguments): TransportInterface |
63 | 63 | { |
64 | - if (! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
64 | + if ( ! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
65 | 65 | throw new InvalidArgumentException(\sprintf( |
66 | 66 | 'The first argument must be of type %s', |
67 | 67 | ContainerInterface::class |
@@ -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 | } |