Completed
Push — master ( 8f808e...855bfc )
by Siad
01:45
created
src/Bot.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/ReactRunner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
src/APIPollClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.