Completed
Branch master (b2ab6f)
by Mattias
05:34
created
src/Bot.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -107,6 +107,10 @@
 block discarded – undo
107 107
   }
108 108
 
109 109
 
110
+  /**
111
+   * @param string $command
112
+   * @param string $params
113
+   */
110 114
   private function assembleUri($command, $params) :string {
111 115
     return sprintf(
112 116
       'https://api.telegram.org/bot%s/%s%s',
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
    *
68 68
    */
69 69
   public function getResponder($message) {
70
-    return function ($text) use($message){
70
+    return function($text) use($message){
71 71
         $this->sendResponse($text, $message);
72 72
     };
73 73
   }
Please login to merge, or discard this patch.
src/ReactRunner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@
 block discarded – undo
42 42
       $counter = 0;
43 43
       $bot->setClient($this->client);
44 44
 
45
-      $this->loop->addPeriodicTimer(2, function (\React\EventLoop\Timer\Timer $timer) use ($bot, $times, &$counter) {
45
+      $this->loop->addPeriodicTimer(2, function(\React\EventLoop\Timer\Timer $timer) use ($bot, $times, &$counter) {
46 46
 
47 47
         $bot->poll();
48 48
 
49
-        if ( $times && $times >= $counter) {
49
+        if ($times && $times >= $counter) {
50 50
           $this->loop->cancelTimer($timer);
51 51
         }
52 52
       });
Please login to merge, or discard this patch.