Completed
Branch master (a303bd)
by Rafael
02:24
created
src/TelegramAdapter.php 3 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -18,6 +18,10 @@  discard block
 block discarded – undo
18 18
 
19 19
   private $chat_id;
20 20
 
21
+  /**
22
+   * @param string $token
23
+   * @param integer $chatId
24
+   */
21 25
   public function __construct($token, $chatId) {
22 26
 
23 27
     $this->telegram = new TelegramBotApi($token);
@@ -25,6 +29,9 @@  discard block
 block discarded – undo
25 29
     return $this;
26 30
   }
27 31
 
32
+  /**
33
+   * @param string $message
34
+   */
28 35
   public function sendMessage($message) {
29 36
 
30 37
     $response = $this->telegram->sendMessage([
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace TelegramHandler;
4 4
 use Telegram\Bot\Api as TelegramBotApi;
5
-use Symfony\Component\Yaml\Parser;
6 5
 
7 6
 /**
8 7
  * TelegramAdapter
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
   public function sendMessage($message) {
29 29
 
30 30
     $response = $this->telegram->sendMessage([
31
-         'chat_id' => $this->chat_id, 
32
-         'text' => $message,
33
-         'parse_mode' => 'HTML'
31
+          'chat_id' => $this->chat_id, 
32
+          'text' => $message,
33
+          'parse_mode' => 'HTML'
34 34
     ]);
35 35
   }
36 36
 }
Please login to merge, or discard this patch.