@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | $result_message = 'Email Send Failed'; |
26 | 26 | |
27 | - foreach ($recipients AS $recipient) { |
|
27 | + foreach ($recipients as $recipient) { |
|
28 | 28 | |
29 | 29 | $mail->Subject = $subject; |
30 | 30 | $mail->Body = $message_html; |
@@ -4,7 +4,7 @@ |
||
4 | 4 | class Sanitize |
5 | 5 | { |
6 | 6 | |
7 | - public function text($text) |
|
7 | + public function text($text) |
|
8 | 8 | { |
9 | 9 | return htmlspecialchars($text, ENT_QUOTES, 'UTF-8'); |
10 | 10 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | { |
6 | 6 | |
7 | 7 | public function text($text) |
8 | - { |
|
8 | + { |
|
9 | 9 | return htmlspecialchars($text, ENT_QUOTES, 'UTF-8'); |
10 | 10 | |
11 | 11 | } |
@@ -4,7 +4,7 @@ |
||
4 | 4 | class Unsanitize |
5 | 5 | { |
6 | 6 | |
7 | - public function text($text) |
|
7 | + public function text($text) |
|
8 | 8 | { |
9 | 9 | return htmlspecialchars_decode($text, ENT_QUOTES); |
10 | 10 |
@@ -5,7 +5,7 @@ |
||
5 | 5 | { |
6 | 6 | |
7 | 7 | public function text($text) |
8 | - { |
|
8 | + { |
|
9 | 9 | return htmlspecialchars_decode($text, ENT_QUOTES); |
10 | 10 | |
11 | 11 | } |
@@ -24,7 +24,9 @@ discard block |
||
24 | 24 | $full_url = 'https://api.exchangeratesapi.io/latest?base=' . $from_currency . '&symbols=' . $to_currency; |
25 | 25 | $remote = new Remote(); |
26 | 26 | $result = $remote->getFileContents($full_url); |
27 | - if ($result === false) return false; |
|
27 | + if ($result === false) { |
|
28 | + return false; |
|
29 | + } |
|
28 | 30 | $json_result = json_decode($result, true); |
29 | 31 | $conversion_rate = $json_result['rates'][$to_currency]; |
30 | 32 | |
@@ -34,7 +36,9 @@ discard block |
||
34 | 36 | $full_url = 'https://free.currencyconverterapi.com/api/v5/convert?q=' . $currency_slug . '&compact=y'; |
35 | 37 | $remote = new Remote(); |
36 | 38 | $result = $remote->getFileContents($full_url); |
37 | - if ($result === false || $result === '{}') return false; |
|
39 | + if ($result === false || $result === '{}') { |
|
40 | + return false; |
|
41 | + } |
|
38 | 42 | $json_result = json_decode($result); |
39 | 43 | $conversion_rate = $json_result->{$currency_slug}->val; |
40 | 44 |