@@ -48,12 +48,12 @@ discard block |
||
48 | 48 | $chatId = $update->getEffectiveChat() ? $update->getEffectiveChat()->getId() : null; |
49 | 49 | if ($chatId) { |
50 | 50 | $this->conversationManager->getConversationHandler($chatId) |
51 | - ->then(function ($handlerInfo) use ($deferred, &$listeners) { |
|
51 | + ->then(function($handlerInfo) use ($deferred, &$listeners) { |
|
52 | 52 | if ($handlerInfo) { |
53 | 53 | $listeners[] = new Listener($handlerInfo[0], $this->container); |
54 | 54 | } |
55 | 55 | $deferred->resolve($listeners); |
56 | - })->otherwise(function ($e) use ($deferred) { |
|
56 | + })->otherwise(function($e) use ($deferred) { |
|
57 | 57 | // if something goes wrong, reject the promise |
58 | 58 | $deferred->reject($e); |
59 | 59 | }); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $text = $update->getMessage()->getText(); |
67 | 67 | $chatId = $update->getEffectiveChat()->getId(); |
68 | 68 | $this->conversationManager->getConversationHandler($chatId) |
69 | - ->then(function ($handlerInfo) use ($chatId, $text, $deferred, &$listeners) { |
|
69 | + ->then(function($handlerInfo) use ($chatId, $text, $deferred, &$listeners) { |
|
70 | 70 | if (!$handlerInfo) { |
71 | 71 | if ($text) { |
72 | 72 | $this->findListenerAndPush($listeners, 'messages', $text); |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | $deferred->resolve($listeners); |
94 | - })->otherwise(function ($e) use ($deferred) { |
|
94 | + })->otherwise(function($e) use ($deferred) { |
|
95 | 95 | // if something goes wrong, reject the promise |
96 | 96 | $deferred->reject($e); |
97 | 97 | }); |