Commit d9f66451 authored by Fabio Stegmeyer's avatar Fabio Stegmeyer
Browse files

Merge branch 'feature_all_markers_html' into 'master'

[TASK] Remove double points in table mail markup

See merge request !38
parents 4aba8f78 46733991
......@@ -1006,17 +1006,17 @@ class MailTemplateService {
}
if (\is_string($value)) {
$allMarker .= '<tr><th>' . $key . ': </th><td> ' . $value . '</td></tr>';
$allMarker .= '<tr><th>' . $key . ' </th><td> ' . $value . '</td></tr>';
} elseif (\is_array($value)) {
foreach ($value as $innerKey => $innerValue) {
$allMarker .= '<tr><th>' . $key . '.' . $innerKey . ': </th><td> ' . $innerValue . '</td></tr>';
$allMarker .= '<tr><th>' . $key . '.' . $innerKey . ' </th><td> ' . $innerValue . '</td></tr>';
}
} elseif (\is_bool($value)) {
$valueAsString = $value ? 'true' : 'false';
$allMarker .= '<tr><th>' . $key . ': </th><td> ' . $valueAsString . '</td></tr>';
$allMarker .= '<tr><th>' . $key . ' </th><td> ' . $valueAsString . '</td></tr>';
} elseif (\is_object($value)) {
if (\method_exists($value, '__toString')) {
$allMarker .= '<tr><th>' . $key . ': </th><td> ' . $value->__toString() . '</td></tr>';
$allMarker .= '<tr><th>' . $key . ' </th><td> ' . $value->__toString() . '</td></tr>';
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment