Commit 08de7440 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Correcting all marker creation still WIP

parent 4073e7fb
......@@ -949,16 +949,18 @@ class MailTemplateService {
* @param array $markers
* @return string
*/
private function getAllMarker(array $markers) {
private function getAllMarker(array $markers): string {
$allMarker = '';
foreach ($markers as $key => $value) {
if (!\is_array($value)) {
$allMarker .= $value . PHP_EOL;
} else {
if (\is_string($value)) {
$allMarker .= $key . ': ' . $value . PHP_EOL;
} elseif (\is_array($value)) {
foreach ($value as $innerKey => $innerValue) {
$allMarker .= $innerValue . PHP_EOL;
$allMarker .= $key . ': ' . $innerValue . PHP_EOL;
}
} elseif (\is_bool($value)) {
$allMarker .= $key . ': ' . $value . PHP_EOL;
}
}
......
Supports Markdown
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