@@ 69-80 (lines=12) @@ | ||
66 | $rendered = trim($rendered); |
|
67 | } |
|
68 | ||
69 | if (!empty($rendered)) { |
|
70 | ||
71 | $emails = explode(',', $rendered); |
|
72 | ||
73 | $emails = array_filter($emails, function($var) { |
|
74 | return filter_var($var, FILTER_VALIDATE_EMAIL); |
|
75 | }); |
|
76 | ||
77 | if (!empty($emails)) { |
|
78 | return $emails; |
|
79 | } |
|
80 | } |
|
81 | ||
82 | $field = 'email'; |
|
83 | if (!empty($this->config[ConfigurationConstants::DEFAULT_VARIABLES][ConfigurationConstants::EMAIL_FIELD_IDENTIFIER])) { |
@@ 165-176 (lines=12) @@ | ||
162 | $rendered = trim($rendered); |
|
163 | } |
|
164 | ||
165 | if (!empty($rendered)) { |
|
166 | ||
167 | $emails = explode(',', $rendered); |
|
168 | ||
169 | $emails = array_filter($emails, function($var) { |
|
170 | return filter_var($var, FILTER_VALIDATE_EMAIL); |
|
171 | }); |
|
172 | ||
173 | if (!empty($emails)) { |
|
174 | return $emails; |
|
175 | } |
|
176 | } |
|
177 | ||
178 | $content = $data->getContent(); |
|
179 | if (array_key_exists($field, $content->fields) && |