@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | foreach ($this->config['chats'] as $idUser) { |
43 | 43 | $url = 'https://api.telegram.org/'. $this->config['token'] .'/sendMessage?disable_web_page_preview=true&chat_id='. $idUser |
44 | - . '&parse_mode=HTML&text='; |
|
44 | + . '&parse_mode=HTML&text='; |
|
45 | 45 | |
46 | 46 | @file_get_contents($url . $text); |
47 | 47 | } |
@@ -48,11 +48,11 @@ |
||
48 | 48 | |
49 | 49 | |
50 | 50 | $url = 'https://slack.com/api/chat.postMessage?' |
51 | - . 'token='. $this->config['token'] |
|
52 | - . '&channel='. urlencode($this->config['channel']) |
|
53 | - . '&text='. urlencode($text) |
|
54 | - . '&username='. urlencode($this->config['username']) |
|
55 | - . '&as_user=false&icon_url=http%3A%2F%2Fcherry-pie.co%2Fimg%2Flog-envelope.png&mrkdwn=1&pretty=1&attachments='. urlencode(json_encode([$attachments])); |
|
51 | + . 'token='. $this->config['token'] |
|
52 | + . '&channel='. urlencode($this->config['channel']) |
|
53 | + . '&text='. urlencode($text) |
|
54 | + . '&username='. urlencode($this->config['username']) |
|
55 | + . '&as_user=false&icon_url=http%3A%2F%2Fcherry-pie.co%2Fimg%2Flog-envelope.png&mrkdwn=1&pretty=1&attachments='. urlencode(json_encode([$attachments])); |
|
56 | 56 | |
57 | 57 | @file_get_contents($url); |
58 | 58 | } // end send |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | MailFacade::queue('log-envelope::main', $data, function($message) use ($data, $config) { |
37 | 37 | $subject = sprintf('[%s] @ %s: %s', $data['class'], $data['host'], $data['exception']); |
38 | 38 | |
39 | - // to protect from gmail's anchors automatic generation |
|
39 | + // to protect from gmail's anchors automatic generation |
|
40 | 40 | $message->setBody( |
41 | 41 | preg_replace( |
42 | 42 | ['~\.~', '~http~'], |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | ) |
46 | 46 | ); |
47 | 47 | |
48 | - $message->to($config['to']) |
|
49 | - ->from($config['from_email'], $config['from_name']) |
|
50 | - ->subject($subject); |
|
48 | + $message->to($config['to']) |
|
49 | + ->from($config['from_email'], $config['from_name']) |
|
50 | + ->subject($subject); |
|
51 | 51 | }); |
52 | 52 | } // end send |
53 | 53 |