@@ -27,12 +27,12 @@ |
||
| 27 | 27 | { |
| 28 | 28 | $connection = $entityManager->getConnection(); |
| 29 | 29 | |
| 30 | - if (! $connection->ping()) { |
|
| 30 | + if ( ! $connection->ping()) { |
|
| 31 | 31 | $connection->close(); |
| 32 | 32 | $connection->connect(); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - if (! $entityManager->isOpen()) { |
|
| 35 | + if ( ! $entityManager->isOpen()) { |
|
| 36 | 36 | $this->managerRegistry->resetManager($this->entityManagerName); |
| 37 | 37 | } |
| 38 | 38 | } |
@@ -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 |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public static function __callStatic(string $name, array $arguments): MiddlewareInterface |
| 30 | 30 | { |
| 31 | - if (! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 31 | + if ( ! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 32 | 32 | throw new InvalidArgumentException(\sprintf( |
| 33 | 33 | 'The first argument must be of type %s', |
| 34 | 34 | ContainerInterface::class |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | */ |
| 50 | 50 | public static function __callStatic(string $name, array $arguments): SendMessageMiddleware |
| 51 | 51 | { |
| 52 | - if (! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 52 | + if ( ! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 53 | 53 | throw new InvalidArgumentException(\sprintf( |
| 54 | 54 | 'The first argument must be of type %s', |
| 55 | 55 | ContainerInterface::class |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | public static function __callStatic(string $name, array $arguments): HandleMessageMiddleware |
| 47 | 47 | { |
| 48 | - if (! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 48 | + if ( ! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 49 | 49 | throw new InvalidArgumentException(\sprintf( |
| 50 | 50 | 'The first argument must be of type %s', |
| 51 | 51 | ContainerInterface::class |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public static function __callStatic(string $name, array $arguments): AddBusNameStampMiddleware |
| 33 | 33 | { |
| 34 | - if (! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 34 | + if ( ! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 35 | 35 | throw new InvalidArgumentException(\sprintf( |
| 36 | 36 | 'The first argument must be of type %s', |
| 37 | 37 | ContainerInterface::class |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | */ |
| 65 | 65 | public static function __callStatic(string $name, array $arguments): MessageBusInterface |
| 66 | 66 | { |
| 67 | - if (! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 67 | + if ( ! \array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
| 68 | 68 | throw new InvalidArgumentException(\sprintf( |
| 69 | 69 | 'The first argument must be of type %s', |
| 70 | 70 | ContainerInterface::class |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | { |
| 17 | 17 | // create a proxy to avoid circular dependencies |
| 18 | 18 | |
| 19 | - $factory = static function () use ($container): EventDispatcher { |
|
| 19 | + $factory = static function() use ($container): EventDispatcher { |
|
| 20 | 20 | /** @var array $config */ |
| 21 | 21 | $config = $container->has('config') ? $container->get('config') : []; |
| 22 | 22 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $factories = []; |
| 18 | 18 | |
| 19 | 19 | foreach ($transports as $name => $transport) { |
| 20 | - $factories[$name] = static function () use ($name, $container): RetryStrategyInterface { |
|
| 20 | + $factories[$name] = static function() use ($name, $container): RetryStrategyInterface { |
|
| 21 | 21 | return (new RetryStrategyFactory($name))($container); |
| 22 | 22 | }; |
| 23 | 23 | } |