@@ -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 | } |
@@ -17,7 +17,9 @@ discard block |
||
17 | 17 | |
18 | 18 | public function getConvRate($from_currency, $to_currency) |
19 | 19 | { |
20 | - if ($from_currency == $to_currency) return 1.0; |
|
20 | + if ($from_currency == $to_currency) { |
|
21 | + return 1.0; |
|
22 | + } |
|
21 | 23 | |
22 | 24 | $conversion_rate = 0.0; |
23 | 25 | |
@@ -26,7 +28,9 @@ discard block |
||
26 | 28 | $full_url = 'https://api.exchangeratesapi.io/latest?base=' . $from_currency . '&symbols=' . $to_currency; |
27 | 29 | $remote = new Remote(); |
28 | 30 | $result = $remote->getFileContents($full_url); |
29 | - if ($result === false) return false; |
|
31 | + if ($result === false) { |
|
32 | + return false; |
|
33 | + } |
|
30 | 34 | $json_result = json_decode($result, true); |
31 | 35 | $conversion_rate = $json_result['rates'][$to_currency]; |
32 | 36 |