@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | const P_PARAM_ATTACHMENT__NAME = 'n'; |
19 | 19 | |
20 | 20 | /** |
21 | - * @return int|null|string |
|
21 | + * @return string |
|
22 | 22 | */ |
23 | 23 | public function getFromMail() |
24 | 24 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
39 | - * @return int|null|string |
|
39 | + * @return string |
|
40 | 40 | */ |
41 | 41 | public function getFromName() |
42 | 42 | { |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
57 | - * @return int|null|string |
|
57 | + * @return string |
|
58 | 58 | */ |
59 | 59 | public function getToMail() |
60 | 60 | { |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | - * @return int|null|string |
|
93 | + * @return string |
|
94 | 94 | */ |
95 | 95 | public function getBody() |
96 | 96 | { |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | $mail = new \PHPMailer(); |
63 | 63 | |
64 | 64 | $clientConfig = static::getConfig('client'); |
65 | - if(is_array($clientConfig) && count($clientConfig) > 0){ |
|
66 | - foreach($clientConfig as $key => $value){ |
|
65 | + if (is_array($clientConfig) && count($clientConfig) > 0) { |
|
66 | + foreach ($clientConfig as $key => $value) { |
|
67 | 67 | $mail->{$key} = $value; |
68 | 68 | } |
69 | 69 | } |
@@ -92,8 +92,8 @@ discard block |
||
92 | 92 | $attachments = $job->getAttachment(); |
93 | 93 | if (!empty($attachments) && is_array($attachments) && count($attachments) > 0) { |
94 | 94 | foreach ($attachments as $key => $attach) { |
95 | - if(isset($attach[Job::P_PARAM_ATTACHMENT__NAME])){ |
|
96 | - $mail->addAttachment($attach[Job::P_PARAM_ATTACHMENT__PATH] , $attach[Job::P_PARAM_ATTACHMENT__NAME]); |
|
95 | + if (isset($attach[Job::P_PARAM_ATTACHMENT__NAME])) { |
|
96 | + $mail->addAttachment($attach[Job::P_PARAM_ATTACHMENT__PATH], $attach[Job::P_PARAM_ATTACHMENT__NAME]); |
|
97 | 97 | } else { |
98 | 98 | $mail->addAttachment($attach[Job::P_PARAM_ATTACHMENT__PATH]); |
99 | 99 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | throw new ResultException(ResultException::RETRY_TRANSPORT_ERROR); |
126 | 126 | } |
127 | 127 | |
128 | - if(!$resultData['response']['success']){ |
|
128 | + if (!$resultData['response']['success']) { |
|
129 | 129 | throw new ResultException(ResultException::R_FAILURE, $resultData); |
130 | 130 | } |
131 | 131 |