Passed
Branch master (460f17)
by Thomas Mauro
04:03
created
Category
src/Factory/Transport/TransportFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Factory/Transport/Receiver/ReceiversLocatorFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.