@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | $messenger = new MailgunTest($apiKey, $domain); |
| 58 | 58 | |
| 59 | - foreach($recipients as $recipient) { |
|
| 59 | + foreach ($recipients as $recipient) { |
|
| 60 | 60 | if (filter_var($recipient, FILTER_VALIDATE_EMAIL)) { |
| 61 | 61 | $messenger->addRecipient($recipient); |
| 62 | 62 | } |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | |
| 55 | 55 | $messenger = new MailTest(); |
| 56 | 56 | |
| 57 | - foreach($recipients as $recipient) { |
|
| 57 | + foreach ($recipients as $recipient) { |
|
| 58 | 58 | if (filter_var($recipient, FILTER_VALIDATE_EMAIL)) { |
| 59 | 59 | $messenger->addRecipient($recipient); |
| 60 | 60 | } |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | $messenger = new SendgridTest($apiKey); |
| 58 | 58 | |
| 59 | - foreach($recipients as $recipient) { |
|
| 59 | + foreach ($recipients as $recipient) { |
|
| 60 | 60 | if (filter_var($recipient, FILTER_VALIDATE_EMAIL)) { |
| 61 | 61 | $messenger->addRecipient($recipient); |
| 62 | 62 | } |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | |
| 70 | 70 | $messenger = new SmtpTest($user, $pass, $host, (int) $port); |
| 71 | 71 | |
| 72 | - foreach($recipients as $recipient) { |
|
| 72 | + foreach ($recipients as $recipient) { |
|
| 73 | 73 | if (filter_var($recipient, FILTER_VALIDATE_EMAIL)) { |
| 74 | 74 | $messenger->addRecipient($recipient); |
| 75 | 75 | } |
@@ -30,11 +30,11 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public static function get(array $setting): MessengerInterface |
| 32 | 32 | { |
| 33 | - $sender = $setting['config']['sender'] ?? ''; |
|
| 33 | + $sender = $setting['config']['sender'] ?? ''; |
|
| 34 | 34 | $recipients = $setting['config']['recipients'] ?? []; |
| 35 | - $host = $setting['config']['host'] ?? ''; |
|
| 36 | - $user = $setting['config']['user'] ?? ''; |
|
| 37 | - $pass = $setting['config']['pass'] ?? ''; |
|
| 35 | + $host = $setting['config']['host'] ?? ''; |
|
| 36 | + $user = $setting['config']['user'] ?? ''; |
|
| 37 | + $pass = $setting['config']['pass'] ?? ''; |
|
| 38 | 38 | $port = $setting['config']['port'] ?? ''; |
| 39 | 39 | |
| 40 | 40 | $instance = new Smtp($user, $pass, $host, (int) $port); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | public static function get(array $setting): MessengerInterface |
| 31 | 31 | { |
| 32 | 32 | $botToken = $setting['config']['bot_token'] ?? ''; |
| 33 | - $channel = $setting['config']['channel'] ?? ''; |
|
| 33 | + $channel = $setting['config']['channel'] ?? ''; |
|
| 34 | 34 | |
| 35 | 35 | return new Slack($botToken, $channel); |
| 36 | 36 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public static function get(array $setting): MessengerInterface |
| 32 | 32 | { |
| 33 | - $sender = $setting['config']['sender'] ?? ''; |
|
| 33 | + $sender = $setting['config']['sender'] ?? ''; |
|
| 34 | 34 | $recipients = $setting['config']['recipients'] ?? []; |
| 35 | 35 | |
| 36 | 36 | $instance = new Mail(); |
@@ -30,10 +30,10 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public static function get(array $setting): MessengerInterface |
| 32 | 32 | { |
| 33 | - $apiKey = $setting['config']['api_key'] ?? ''; |
|
| 33 | + $apiKey = $setting['config']['api_key'] ?? ''; |
|
| 34 | 34 | $domain = $setting['config']['domain_name'] ?? ''; |
| 35 | - $sender = $setting['config']['sender'] ?? ''; |
|
| 36 | - $recipients = $setting['config']['recipients'] ?? []; |
|
| 35 | + $sender = $setting['config']['sender'] ?? ''; |
|
| 36 | + $recipients = $setting['config']['recipients'] ?? []; |
|
| 37 | 37 | |
| 38 | 38 | $instance = new Mailgun($apiKey, $domain); |
| 39 | 39 | $instance->setSubject(__('core', 'messenger_text_mail_subject')); |
@@ -29,10 +29,10 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public static function get(array $setting): MessengerInterface |
| 31 | 31 | { |
| 32 | - $serverUrl = $setting['config']['server_url'] ?? ''; |
|
| 33 | - $userId = $setting['config']['user_id'] ?? ''; |
|
| 32 | + $serverUrl = $setting['config']['server_url'] ?? ''; |
|
| 33 | + $userId = $setting['config']['user_id'] ?? ''; |
|
| 34 | 34 | $accessToken = $setting['config']['access_token'] ?? ''; |
| 35 | - $channel = $setting['config']['channel'] ?? ''; |
|
| 35 | + $channel = $setting['config']['channel'] ?? ''; |
|
| 36 | 36 | |
| 37 | 37 | return new RocketChat($accessToken, $userId, $serverUrl, $channel); |
| 38 | 38 | } |