Passed
Push — master ( b2b84f...109e7c )
by Thomas Mauro
03:02
created
src/Factory/Listener/StopWorkerOnRestartSignalListenerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Factory/Transport/TransportProviderFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
 
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
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $receivers = $config['messenger']['receivers'] ?? [];
28 28
 
29 29
         foreach ($transportNames as $name) {
30
-            $factories[(string) $name] = static function () use ($name, $container): ReceiverInterface {
30
+            $factories[(string) $name] = static function() use ($name, $container): ReceiverInterface {
31 31
                 return $container->get((string) $name);
32 32
             };
33 33
         }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
                 throw new InvalidArgumentException(sprintf('A receiver named "%s" already exists as a transport name', $name));
38 38
             }
39 39
 
40
-            $factories[(string) $name] = static function () use ($serviceName, $container): ReceiverInterface {
40
+            $factories[(string) $name] = static function() use ($serviceName, $container): ReceiverInterface {
41 41
                 return $container->get($serviceName);
42 42
             };
43 43
         }
Please login to merge, or discard this patch.
src/Factory/Transport/TransportFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Factory/Transport/Sender/SendersLocatorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Factory/RoutableMessageBusFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Factory/Middleware/HandleMessageMiddlewareFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     public static function __callStatic(string $name, array $arguments): HandleMessageMiddleware
52 52
     {
53
-        if (! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) {
53
+        if (!array_key_exists(0, $arguments) || !$arguments[0] instanceof ContainerInterface) {
54 54
             throw new InvalidArgumentException(sprintf(
55 55
                 'The first argument must be of type %s',
56 56
                 ContainerInterface::class
Please login to merge, or discard this patch.
src/Factory/Middleware/SendMessageMiddlewareFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public static function __callStatic(string $name, array $arguments): SendMessageMiddleware
56 56
     {
57
-        if (! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) {
57
+        if (!array_key_exists(0, $arguments) || !$arguments[0] instanceof ContainerInterface) {
58 58
             throw new InvalidArgumentException(sprintf(
59 59
                 'The first argument must be of type %s',
60 60
                 ContainerInterface::class
Please login to merge, or discard this patch.
src/Factory/Middleware/AbstractDoctrineMiddlewareFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public static function __callStatic(string $name, array $arguments): MiddlewareInterface
31 31
     {
32
-        if (! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) {
32
+        if (!array_key_exists(0, $arguments) || !$arguments[0] instanceof ContainerInterface) {
33 33
             throw new InvalidArgumentException(sprintf(
34 34
                 'The first argument must be of type %s',
35 35
                 ContainerInterface::class
Please login to merge, or discard this patch.