@@ -13,7 +13,9 @@ |
||
13 | 13 | list($currency_slug, $full_url) = $this->getConvUrl($from_currency, $to_currency); |
14 | 14 | $remote = new Remote(); |
15 | 15 | $result = $remote->getFileContents($full_url); |
16 | - if ($result === false) return false; |
|
16 | + if ($result === false) { |
|
17 | + return false; |
|
18 | + } |
|
17 | 19 | $json_result = json_decode($result); |
18 | 20 | $conversion_rate = $json_result->{$currency_slug}->val; |
19 | 21 |
@@ -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 | } |
@@ -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 | } |