@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | |
18 | 18 | |
19 | 19 | /** |
20 | - * @return null |
|
20 | + * @return string |
|
21 | 21 | */ |
22 | 22 | public function getUrl() |
23 | 23 | { |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
38 | - * @return null |
|
38 | + * @return string |
|
39 | 39 | */ |
40 | 40 | public function getMethod() |
41 | 41 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Cronario\AbstractJob; |
6 | 6 | use Cronario\AbstractWorker; |
7 | -use Cronario\Logger; |
|
8 | 7 | use Messenger\CurlWrapper; |
9 | 8 | use Messenger\CurlWrapperCurlException; |
10 | 9 | use Messenger\CurlWrapperException; |
@@ -12,7 +12,7 @@ |
||
12 | 12 | const P_PARAM_TEXT = 'text'; |
13 | 13 | |
14 | 14 | /** |
15 | - * @return int|null|string |
|
15 | + * @return string |
|
16 | 16 | */ |
17 | 17 | public function getRecipient() |
18 | 18 | { |
@@ -79,7 +79,7 @@ |
||
79 | 79 | const P_RESULT_DATA_ERRORS = 'errors'; |
80 | 80 | |
81 | 81 | /** |
82 | - * @param null $vendor_name |
|
82 | + * @param string $vendor_name |
|
83 | 83 | * @param null $vendor_id |
84 | 84 | * @param null $success |
85 | 85 | * @param null $errors |
@@ -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 |