Passed
Push — master ( f8f613...c5dee8 )
by Thomas Mauro
03:31
created
src/Factory/Middleware/AddBusNameStampMiddlewareFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
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
@@ -51,7 +51,7 @@
 block discarded – undo
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
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
@@ -47,7 +47,7 @@
 block discarded – undo
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
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
@@ -30,7 +30,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Factory/MessageBusFactory.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): 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
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
@@ -37,7 +37,7 @@
 block discarded – undo
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
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
@@ -65,7 +65,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Handler/ContainerHandlersLocator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.