@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | |
349 | 349 | $this->htmlBody .= vsprintf($this->heading, [htmlspecialchars($title)]); |
350 | 350 | if ($plainTitle !== false) { |
351 | - $this->plainBody .= $plainTitle . PHP_EOL . PHP_EOL; |
|
351 | + $this->plainBody .= $plainTitle.PHP_EOL.PHP_EOL; |
|
352 | 352 | } |
353 | 353 | } |
354 | 354 | |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | |
375 | 375 | $this->htmlBody .= vsprintf($this->bodyText, [htmlspecialchars($text)]); |
376 | 376 | if ($plainText !== false) { |
377 | - $this->plainBody .= $plainText . PHP_EOL . PHP_EOL; |
|
377 | + $this->plainBody .= $plainText.PHP_EOL.PHP_EOL; |
|
378 | 378 | } |
379 | 379 | } |
380 | 380 | |
@@ -413,8 +413,8 @@ discard block |
||
413 | 413 | $color = $this->themingDefaults->getColorPrimary(); |
414 | 414 | |
415 | 415 | $this->htmlBody .= vsprintf($this->buttonGroup, [$color, $color, $urlLeft, $color, htmlspecialchars($textLeft), $urlRight, htmlspecialchars($textRight)]); |
416 | - $this->plainBody .= $plainTextLeft . ': ' . $urlLeft . PHP_EOL; |
|
417 | - $this->plainBody .= $plainTextRight . ': ' . $urlRight . PHP_EOL . PHP_EOL; |
|
416 | + $this->plainBody .= $plainTextLeft.': '.$urlLeft.PHP_EOL; |
|
417 | + $this->plainBody .= $plainTextRight.': '.$urlRight.PHP_EOL.PHP_EOL; |
|
418 | 418 | |
419 | 419 | } |
420 | 420 | |
@@ -446,10 +446,10 @@ discard block |
||
446 | 446 | $this->htmlBody .= vsprintf($this->button, [$color, $color, $url, $color, htmlspecialchars($text)]); |
447 | 447 | |
448 | 448 | if ($plainText !== false) { |
449 | - $this->plainBody .= $plainText . ': '; |
|
449 | + $this->plainBody .= $plainText.': '; |
|
450 | 450 | } |
451 | 451 | |
452 | - $this->plainBody .= $url . PHP_EOL; |
|
452 | + $this->plainBody .= $url.PHP_EOL; |
|
453 | 453 | |
454 | 454 | } |
455 | 455 | |
@@ -459,8 +459,8 @@ discard block |
||
459 | 459 | * @param string $text If the text is empty the default "Name - Slogan<br>This is an automatically generated email" will be used |
460 | 460 | */ |
461 | 461 | public function addFooter($text = '') { |
462 | - if($text === '') { |
|
463 | - $text = $this->themingDefaults->getName() . ' - ' . $this->themingDefaults->getSlogan() . '<br>' . $this->l10n->t('This is an automatically generated email, please do not reply.'); |
|
462 | + if ($text === '') { |
|
463 | + $text = $this->themingDefaults->getName().' - '.$this->themingDefaults->getSlogan().'<br>'.$this->l10n->t('This is an automatically generated email, please do not reply.'); |
|
464 | 464 | } |
465 | 465 | |
466 | 466 | if ($this->footerAdded) { |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | |
476 | 476 | $this->htmlBody .= vsprintf($this->footer, [$text]); |
477 | 477 | $this->htmlBody .= $this->tail; |
478 | - $this->plainBody .= PHP_EOL . '-- ' . PHP_EOL; |
|
478 | + $this->plainBody .= PHP_EOL.'-- '.PHP_EOL; |
|
479 | 479 | $this->plainBody .= str_replace('<br>', PHP_EOL, $text); |
480 | 480 | } |
481 | 481 |