Passed
Pull Request — master (#24)
by
unknown
04:40
created
src/channels/TwilioChannel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             ->createRequest()
57 57
             ->setMethod('post')
58 58
             ->setUrl($this->getUri())
59
-            ->addHeaders(['Authorization' => 'Basic ' . base64_encode("{$this->accountSid}:{$this->authToken}")])
59
+            ->addHeaders(['Authorization' => 'Basic '.base64_encode("{$this->accountSid}:{$this->authToken}")])
60 60
             ->setData($data)
61 61
             ->send();
62 62
     }
Please login to merge, or discard this patch.
src/Notifier.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $recipients = [$recipients];
79 79
         }
80 80
         
81
-        if (!is_array($notifications)){
81
+        if (!is_array($notifications)) {
82 82
             /**
83 83
              * @var $notifications NotificationInterface[]
84 84
              */
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                 foreach ($channels as $channel) {
97 97
                     $channelInstance = $this->getChannelInstance($channel);
98 98
                     try {
99
-                        \Yii::info("Sending notification " . get_class($notification) . " to " . get_class($recipient) . " via {$channel}", __METHOD__);
99
+                        \Yii::info("Sending notification ".get_class($notification)." to ".get_class($recipient)." via {$channel}", __METHOD__);
100 100
                         $response = $channelInstance->send($recipient, $notification);
101 101
                     } catch (\Exception $e) {
102 102
                         $response = $e;
Please login to merge, or discard this patch.
src/channels/TelegramChannel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     {
59 59
         parent::init();
60 60
 
61
-        if(!isset($this->bot_id) || !isset($this->botToken)){
61
+        if (!isset($this->bot_id) || !isset($this->botToken)) {
62 62
             throw new InvalidConfigException("Bot id or bot token is undefined");
63 63
         }
64 64
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $message = $notification->exportFor('telegram');
85 85
         $text = "*{$message->subject}*\n{$message->body}";
86 86
         $chat_id = $recipient->routeNotificationFor('telegram');
87
-        if(!$chat_id){
87
+        if (!$chat_id) {
88 88
             throw new \Exception("User doesn't have telegram_id");
89 89
         }
90 90
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             "text" => $text,
94 94
             'disable_notification' => $this->silentMode
95 95
         ];
96
-        if($this->parseMode  != null){
96
+        if ($this->parseMode != null) {
97 97
             $data["parse_mode"] = $this->parseMode;
98 98
         }
99 99
 
@@ -106,6 +106,6 @@  discard block
 block discarded – undo
106 106
 
107 107
     private function createUrl()
108 108
     {
109
-        return "bot" . $this->bot_id . ":" . $this->botToken . "/sendmessage";
109
+        return "bot".$this->bot_id.":".$this->botToken."/sendmessage";
110 110
     }
111 111
 }
Please login to merge, or discard this patch.