Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
sg_mail
Commits
08de7440
Commit
08de7440
authored
Sep 06, 2018
by
Torsten Oppermann
Browse files
[TASK] Correcting all marker creation still WIP
parent
4073e7fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Service/MailTemplateService.php
View file @
08de7440
...
...
@@ -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
;
}
else
if
(
\
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
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment