Passed
Branch dev (06c1c5)
by Greg
02:59
created
src/GJClasses/MailSmtp.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/GJClasses/Sanitize.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/GJClasses/Unsanitize.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 {
6 6
 
7 7
    public function text($text)
8
-    {
8
+   {
9 9
         return htmlspecialchars_decode($text, ENT_QUOTES);
10 10
 
11 11
     }
Please login to merge, or discard this patch.
src/GJClasses/Currency.php 1 patch
Braces   +15 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,9 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function getConvRate($from_currency, $to_currency)
20 20
     {
21
-        if ($from_currency == $to_currency) return 1.0;
21
+        if ($from_currency == $to_currency) {
22
+            return 1.0;
23
+        }
22 24
 
23 25
         $conversion_rate = 0.0;
24 26
 
@@ -27,7 +29,9 @@  discard block
 block discarded – undo
27 29
             $full_url = 'http://api.exchangeratesapi.io/v1/convert?access_key=' . $this->api_key . '&from=' . $from_currency . '&to=' . $to_currency;
28 30
             $remote = new Remote();
29 31
             $result = $remote->getFileContents($full_url);
30
-            if ($result === false) return false;
32
+            if ($result === false) {
33
+                return false;
34
+            }
31 35
             $json_result = json_decode($result, true);
32 36
             $conversion_rate = $json_result['rates'][$to_currency];
33 37
 
@@ -36,7 +40,9 @@  discard block
 block discarded – undo
36 40
             $full_url = 'https://v6.exchangerate-api.com/v6/' . $this->api_key . '/pair/' . $from_currency . '/' . $to_currency;
37 41
             $remote = new Remote();
38 42
             $result = $remote->getFileContents($full_url);
39
-            if ($result === false) return false;
43
+            if ($result === false) {
44
+                return false;
45
+            }
40 46
             $json_result = json_decode($result, true);
41 47
             $conversion_rate = $json_result['conversion_rate'];
42 48
 
@@ -45,7 +51,9 @@  discard block
 block discarded – undo
45 51
             $full_url = 'http://data.fixer.io/api/convert?access_key=' . $this->api_key . '&from=' . $from_currency . '&to=' . $to_currency;
46 52
             $remote = new Remote();
47 53
             $result = $remote->getFileContents($full_url);
48
-            if ($result === false) return false;
54
+            if ($result === false) {
55
+                return false;
56
+            }
49 57
             $json_result = json_decode($result, true);
50 58
             $conversion_rate = $json_result['rates'][$to_currency];
51 59
 
@@ -54,7 +62,9 @@  discard block
 block discarded – undo
54 62
             $full_url = 'https://api.interzoid.com/convertcurrency?license=' . $this->api_key . '&from=' . $from_currency . '&to=' . $to_currency . '&amount=1';
55 63
             $remote = new Remote();
56 64
             $result = $remote->getFileContents($full_url);
57
-            if ($result === false) return false;
65
+            if ($result === false) {
66
+                return false;
67
+            }
58 68
             $json_result = json_decode($result, true);
59 69
             $conversion_rate = $json_result['Converted'];
60 70
 
Please login to merge, or discard this patch.