Completed
Pull Request — master (#50)
by Patrick
11:59 queued 09:01
created
Log/class.LogService.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,9 +27,11 @@
 block discarded – undo
27 27
     {
28 28
         // build a replacement array with braces around the context keys
29 29
         $replace = array();
30
-        foreach ($context as $key => $val) {
30
+        foreach ($context as $key => $val)
31
+        {
31 32
             // check that the value can be casted to string
32
-            if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) {
33
+            if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString')))
34
+            {
33 35
                 $replace['{' . $key . '}'] = $val;
34 36
             }
35 37
         }
Please login to merge, or discard this patch.
Email/class.AmazonSES.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,9 +40,12 @@  discard block
 block discarded – undo
40 40
             $args = array();
41 41
             $args['RawMessage'] = array();
42 42
             $args['RawMessage']['Data'] = base64_encode($email->getRawMessage());
43
-            try {
43
+            try
44
+            {
44 45
                 return $this->ses->sendRawEmail($args);
45
-            } catch(\Exception $e) {
46
+            }
47
+            catch(\Exception $e)
48
+            {
46 49
                 return false;
47 50
             }
48 51
         }
@@ -63,9 +66,12 @@  discard block
 block discarded – undo
63 66
             $args['Message']['Body']['Text']['Data'] = $email->getTextBody();
64 67
             $args['Message']['Body']['Html']['Data'] = $email->getHtmlBody();
65 68
             $args['ReplyToAddresses'] = array($email->getReplyTo());
66
-            try {
69
+            try
70
+            {
67 71
                 return $this->ses->sendEmail($args);
68
-            } catch(\Exception $e) {
72
+            }
73
+            catch(\Exception $e)
74
+            {
69 75
                 return false;
70 76
             }
71 77
         }
Please login to merge, or discard this patch.