@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | $cachePoolForRestartSignal = $config['messenger']['cache_pool_for_restart_signal'] ?? null; |
| 25 | 25 | |
| 26 | - if (! $cachePoolForRestartSignal) { |
|
| 26 | + if (!$cachePoolForRestartSignal) { |
|
| 27 | 27 | throw new InvalidArgumentException('Invalid cache_pool_for_restart_signal service'); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | $transportNames = array_keys($config['messenger']['transports'] ?? []); |
| 22 | 22 | |
| 23 | 23 | foreach ($transportNames as $name) { |
| 24 | - $factories[(string) $name] = static function () use ($name, $container): TransportInterface { |
|
| 24 | + $factories[(string) $name] = static function() use ($name, $container): TransportInterface { |
|
| 25 | 25 | /** @var TransportInterface $transport */ |
| 26 | 26 | $transport = $container->get((string) $name); |
| 27 | 27 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | public static function __callStatic(string $name, array $arguments): TransportInterface |
| 70 | 70 | { |
| 71 | - if (! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 71 | + if (!array_key_exists(0, $arguments) || !$arguments[0] instanceof ContainerInterface) { |
|
| 72 | 72 | throw new InvalidArgumentException(sprintf( |
| 73 | 73 | 'The first argument must be of type %s', |
| 74 | 74 | ContainerInterface::class |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $routing = $config['messenger']['buses'][$this->busName]['routes'] ?? []; |
| 35 | 35 | |
| 36 | 36 | foreach ($routing as $message => $_) { |
| 37 | - if ('*' !== $message && ! class_exists((string) $message) && ! interface_exists((string) $message, false)) { |
|
| 37 | + if ('*' !== $message && !class_exists((string) $message) && !interface_exists((string) $message, false)) { |
|
| 38 | 38 | throw new LogicException(sprintf('Invalid Messenger routing configuration: class or interface "%s" not found.', $message)); |
| 39 | 39 | } |
| 40 | 40 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public static function __callStatic(string $name, array $arguments): MessageBusInterface |
| 42 | 42 | { |
| 43 | - if (! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 43 | + if (!array_key_exists(0, $arguments) || !$arguments[0] instanceof ContainerInterface) { |
|
| 44 | 44 | throw new InvalidArgumentException(sprintf( |
| 45 | 45 | 'The first argument must be of type %s', |
| 46 | 46 | ContainerInterface::class |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | return new FailedMessagesRemoveCommand( |
| 32 | 32 | $failureTransportName, |
| 33 | 33 | new ServiceProvider([ |
| 34 | - $failureTransportName => static function () use ($receiverLocator, $failureTransportName) { return $receiverLocator->get($failureTransportName); }, |
|
| 34 | + $failureTransportName => static function() use ($receiverLocator, $failureTransportName) { return $receiverLocator->get($failureTransportName); }, |
|
| 35 | 35 | ]), |
| 36 | 36 | ); |
| 37 | 37 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | return new FailedMessagesShowCommand( |
| 31 | 31 | $failureTransportName, |
| 32 | 32 | new ServiceProvider([ |
| 33 | - $failureTransportName => static function () use ($receiverLocator, $failureTransportName) { return $receiverLocator->get($failureTransportName); }, |
|
| 33 | + $failureTransportName => static function() use ($receiverLocator, $failureTransportName) { return $receiverLocator->get($failureTransportName); }, |
|
| 34 | 34 | ]), |
| 35 | 35 | ); |
| 36 | 36 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | return new FailedMessagesRetryCommand( |
| 43 | 43 | $failureTransportName, |
| 44 | 44 | new ServiceProvider([ |
| 45 | - $failureTransportName => static function () use ($receiverLocator, $failureTransportName) { return $receiverLocator->get($failureTransportName); }, |
|
| 45 | + $failureTransportName => static function() use ($receiverLocator, $failureTransportName) { return $receiverLocator->get($failureTransportName); }, |
|
| 46 | 46 | ]), |
| 47 | 47 | $messageBus, |
| 48 | 48 | $container->get($eventDispatcher), |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $factories = []; |
| 23 | 23 | |
| 24 | 24 | foreach ($transports as $name => $_) { |
| 25 | - $factories[$name] = static function () use ($name, $container): RetryStrategyInterface { |
|
| 25 | + $factories[$name] = static function() use ($name, $container): RetryStrategyInterface { |
|
| 26 | 26 | return (new RetryStrategyFactory($name))($container); |
| 27 | 27 | }; |
| 28 | 28 | } |