Passed
Push — master ( c91c51...2d3aa8 )
by Anton
03:48
created
src/channels/TelegramChannel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         parent::init();
56 56
 
57
-        if(!isset($this->botToken)){
57
+        if (!isset($this->botToken)) {
58 58
             throw new InvalidConfigException('Bot token is undefined');
59 59
         }
60 60
 
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
             $text = "*{$message->subject}*\n{$message->body}";
81 81
         }
82 82
         $chatId = $recipient->routeNotificationFor('telegram');
83
-        if(!$chatId){
84
-            throw new InvalidArgumentException( 'No chat ID provided');
83
+        if (!$chatId) {
84
+            throw new InvalidArgumentException('No chat ID provided');
85 85
         }
86 86
 
87 87
         $data = [
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             $data['reply_markup'] = Json::encode($message->replyMarkup);
100 100
         }
101 101
 
102
-        if(isset($this->parseMode)){
102
+        if (isset($this->parseMode)) {
103 103
             $data['parse_mode'] = $this->parseMode;
104 104
         }
105 105
 
Please login to merge, or discard this patch.