@@ -65,11 +65,17 @@ discard block |
||
65 | 65 | |
66 | 66 | $this->addAddresses($addresses); |
67 | 67 | |
68 | - if (!empty($replayTo)) $this->mail->addReplyTo(array_values($replayTo)[0], array_keys($replayTo)[0]); |
|
68 | + if (!empty($replayTo)) { |
|
69 | + $this->mail->addReplyTo(array_values($replayTo)[0], array_keys($replayTo)[0]); |
|
70 | + } |
|
69 | 71 | |
70 | - if ($cc) $this->mail->addCC($cc); |
|
72 | + if ($cc) { |
|
73 | + $this->mail->addCC($cc); |
|
74 | + } |
|
71 | 75 | |
72 | - if ($bcc) $this->mail->addBCC($bcc); |
|
76 | + if ($bcc) { |
|
77 | + $this->mail->addBCC($bcc); |
|
78 | + } |
|
73 | 79 | |
74 | 80 | return $this; |
75 | 81 | } |
@@ -81,7 +87,9 @@ discard block |
||
81 | 87 | */ |
82 | 88 | private function addAddresses($addresses) |
83 | 89 | { |
84 | - if (!is_array($addresses)) $addresses = [$addresses]; |
|
90 | + if (!is_array($addresses)) { |
|
91 | + $addresses = [$addresses]; |
|
92 | + } |
|
85 | 93 | |
86 | 94 | foreach ($addresses as $key => $value) { |
87 | 95 | if (is_numeric($key)) { |
@@ -101,7 +109,9 @@ discard block |
||
101 | 109 | */ |
102 | 110 | public function attachments($attachments) |
103 | 111 | { |
104 | - if (!is_array($attachments)) $attachments = [$attachments]; |
|
112 | + if (!is_array($attachments)) { |
|
113 | + $attachments = [$attachments]; |
|
114 | + } |
|
105 | 115 | |
106 | 116 | foreach ($attachments as $key => $value) { |
107 | 117 | if (is_numeric($key)) { |