@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | private $client; |
16 | 16 | |
17 | 17 | /** |
18 | - * @param APIClient|APIPollClient $client |
|
18 | + * @param APIPollClient $client |
|
19 | 19 | */ |
20 | 20 | public function __construct(APIPollClient $client) |
21 | 21 | { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | /** |
73 | 73 | * @param APIMessage $message |
74 | - * @return \Closure|callable |
|
74 | + * @return \Closure |
|
75 | 75 | */ |
76 | 76 | public function getResponder(APIMessage $message): callable |
77 | 77 | { |
@@ -75,7 +75,7 @@ |
||
75 | 75 | */ |
76 | 76 | public function getResponder(APIMessage $message): callable |
77 | 77 | { |
78 | - return function ($text) use ($message) { |
|
78 | + return function($text) use ($message) { |
|
79 | 79 | $this->client->send($text, $message); |
80 | 80 | }; |
81 | 81 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | |
70 | 70 | $this->loop->addPeriodicTimer( |
71 | 71 | $this->loopTimeout, |
72 | - function (Timer $timer) use ($bot, $maxTimesToPoll) { |
|
72 | + function(Timer $timer) use ($bot, $maxTimesToPoll) { |
|
73 | 73 | $bot->poll(); |
74 | 74 | $this->loopCounter++; |
75 | 75 | if (null !== $maxTimesToPoll && ($maxTimesToPoll >= $this->loopCounter)) { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | ); |
48 | 48 | $request->on('response', $responseHandler); |
49 | 49 | $request->on( |
50 | - 'error', function ($data) { |
|
50 | + 'error', function($data) { |
|
51 | 51 | throw new \RuntimeException($data); |
52 | 52 | } |
53 | 53 | ); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | public function markMessageHandled(APIMessage $message) |
75 | 75 | { |
76 | - $this->offset = $message->getUpdateId() + 1; |
|
76 | + $this->offset = $message->getUpdateId()+1; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | public function getResponseHeaders(string $responseString): array |