Skip to content
Snippets Groups Projects
Commit 08de7440 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Correcting all marker creation still WIP

parent 4073e7fb
No related branches found
No related tags found
1 merge request!10Feature improved usability
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment