@@ -72,8 +72,7 @@ |
||
72 | 72 | try { |
73 | 73 | if (!empty($this->dispatchers[$dispatcherKey])) { |
74 | 74 | $this->dispatchers[$dispatcherKey]->dispatch($message); |
75 | - } |
|
76 | - else { |
|
75 | + } else { |
|
77 | 76 | throw new MessageDispatchException( |
78 | 77 | sprintf('No dispatcher available with key "%s"', $dispatcherKey) |
79 | 78 | ); |
@@ -21,8 +21,8 @@ |
||
21 | 21 | $this->notification = $this->getNotificationWithUser(); |
22 | 22 | |
23 | 23 | $this->eventDispatcher = $this->getMockBuilder(EventDispatcherInterface::class) |
24 | - ->disableOriginalConstructor() |
|
25 | - ->getMock(); |
|
24 | + ->disableOriginalConstructor() |
|
25 | + ->getMock(); |
|
26 | 26 | |
27 | 27 | $this->eventChannel = new EventChannel($this->eventDispatcher); |
28 | 28 | } |