@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $receivers = $config['messenger']['receivers'] ?? []; |
28 | 28 | |
29 | 29 | foreach ($transportNames as $name) { |
30 | - $factories[$name] = static function () use ($name, $container): ReceiverInterface { |
|
30 | + $factories[$name] = static function() use ($name, $container): ReceiverInterface { |
|
31 | 31 | return $container->get($name); |
32 | 32 | }; |
33 | 33 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | throw new InvalidArgumentException(sprintf('A receiver named "%s" already exists as a transport name', $name)); |
38 | 38 | } |
39 | 39 | |
40 | - $factories[$name] = static function () use ($serviceName, $container): ReceiverInterface { |
|
40 | + $factories[$name] = static function() use ($serviceName, $container): ReceiverInterface { |
|
41 | 41 | return $container->get($serviceName); |
42 | 42 | }; |
43 | 43 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | public function __invoke(ContainerInterface $container): TransportFactoryInterface |
19 | 19 | { |
20 | - if (! class_exists(DoctrineTransportFactory::class)) { |
|
20 | + if (!class_exists(DoctrineTransportFactory::class)) { |
|
21 | 21 | return new UnsupportedTransportFactory(); |
22 | 22 | } |
23 | 23 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $factories = []; |
23 | 23 | |
24 | 24 | foreach ($transportFactories as $name) { |
25 | - if (! $container->has($name)) { |
|
25 | + if (!$container->has($name)) { |
|
26 | 26 | continue; |
27 | 27 | } |
28 | 28 | try { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $connection->close(); |
43 | 43 | } |
44 | 44 | |
45 | - if (! $entityManager->isOpen()) { |
|
45 | + if (!$entityManager->isOpen()) { |
|
46 | 46 | $this->managerRegistry->resetManager($this->entityManagerName); |
47 | 47 | } |
48 | 48 | } |