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