@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public static function __callStatic(string $name, array $arguments): AddBusNameStampMiddleware |
35 | 35 | { |
36 | - if (! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
36 | + if ( ! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
37 | 37 | throw new InvalidArgumentException(sprintf( |
38 | 38 | 'The first argument must be of type %s', |
39 | 39 | ContainerInterface::class |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | public static function __callStatic(string $name, array $arguments): SendMessageMiddleware |
53 | 53 | { |
54 | - if (! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
54 | + if ( ! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
55 | 55 | throw new InvalidArgumentException(sprintf( |
56 | 56 | 'The first argument must be of type %s', |
57 | 57 | ContainerInterface::class |
@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | public static function __callStatic(string $name, array $arguments): HandleMessageMiddleware |
49 | 49 | { |
50 | - if (! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
50 | + if ( ! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
51 | 51 | throw new InvalidArgumentException(sprintf( |
52 | 52 | 'The first argument must be of type %s', |
53 | 53 | ContainerInterface::class |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public static function __callStatic(string $name, array $arguments): MiddlewareInterface |
32 | 32 | { |
33 | - if (! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
33 | + if ( ! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
34 | 34 | throw new InvalidArgumentException(sprintf( |
35 | 35 | 'The first argument must be of type %s', |
36 | 36 | ContainerInterface::class |
@@ -68,7 +68,7 @@ |
||
68 | 68 | */ |
69 | 69 | public static function __callStatic(string $name, array $arguments): MessageBusInterface |
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 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public static function __callStatic(string $name, array $arguments): MessageBusInterface |
39 | 39 | { |
40 | - if (! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
40 | + if ( ! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
41 | 41 | throw new InvalidArgumentException(sprintf( |
42 | 42 | 'The first argument must be of type %s', |
43 | 43 | ContainerInterface::class |
@@ -65,7 +65,7 @@ |
||
65 | 65 | */ |
66 | 66 | public static function __callStatic(string $name, array $arguments): TransportInterface |
67 | 67 | { |
68 | - if (! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
68 | + if ( ! array_key_exists(0, $arguments) || ! $arguments[0] instanceof ContainerInterface) { |
|
69 | 69 | throw new InvalidArgumentException(sprintf( |
70 | 70 | 'The first argument must be of type %s', |
71 | 71 | ContainerInterface::class |
@@ -46,11 +46,11 @@ |
||
46 | 46 | $handlerDescriptor = new HandlerDescriptor($this->container->get($handlerDescriptor)); |
47 | 47 | } |
48 | 48 | |
49 | - if (! $handlerDescriptor instanceof HandlerDescriptor) { |
|
49 | + if ( ! $handlerDescriptor instanceof HandlerDescriptor) { |
|
50 | 50 | throw new InvalidArgumentException('Invalid handler descriptor provided'); |
51 | 51 | } |
52 | 52 | |
53 | - if (! $this->shouldHandle($envelope, $handlerDescriptor)) { |
|
53 | + if ( ! $this->shouldHandle($envelope, $handlerDescriptor)) { |
|
54 | 54 | continue; |
55 | 55 | } |
56 | 56 | $name = $handlerDescriptor->getName(); |