@@ -55,6 +55,7 @@ discard block |
||
55 | 55 | * Adds a header to the email |
56 | 56 | * |
57 | 57 | * @since 12.0.0 |
58 | + * @return void |
|
58 | 59 | */ |
59 | 60 | public function addHeader(); |
60 | 61 | |
@@ -62,10 +63,11 @@ discard block |
||
62 | 63 | * Adds a heading to the email |
63 | 64 | * |
64 | 65 | * @param string $title |
65 | - * @param string $plainTitle|bool Title that is used in the plain text email |
|
66 | + * @param string $plainTitle Title that is used in the plain text email |
|
66 | 67 | * if empty the $title is used, if false none will be used |
67 | 68 | * |
68 | 69 | * @since 12.0.0 |
70 | + * @return void |
|
69 | 71 | */ |
70 | 72 | public function addHeading($title, $plainTitle = ''); |
71 | 73 | |
@@ -77,6 +79,7 @@ discard block |
||
77 | 79 | * if empty the $text is used, if false none will be used |
78 | 80 | * |
79 | 81 | * @since 12.0.0 |
82 | + * @return void |
|
80 | 83 | */ |
81 | 84 | public function addBodyText($text, $plainText = ''); |
82 | 85 | |
@@ -91,6 +94,7 @@ discard block |
||
91 | 94 | * @param string $plainTextRight Text of right button that is used in the plain text version - if empty the $textRight is used |
92 | 95 | * |
93 | 96 | * @since 12.0.0 |
97 | + * @return void |
|
94 | 98 | */ |
95 | 99 | public function addBodyButtonGroup($textLeft, $urlLeft, $textRight, $urlRight, $plainTextLeft = '', $plainTextRight = ''); |
96 | 100 | |
@@ -103,6 +107,7 @@ discard block |
||
103 | 107 | * if empty the $text is used, if false none will be used |
104 | 108 | * |
105 | 109 | * @since 12.0.0 |
110 | + * @return void |
|
106 | 111 | */ |
107 | 112 | public function addBodyButton($text, $url, $plainText = ''); |
108 | 113 | |
@@ -112,6 +117,7 @@ discard block |
||
112 | 117 | * @param string $text If the text is empty the default "Name - Slogan<br>This is an automatically generated email" will be used |
113 | 118 | * |
114 | 119 | * @since 12.0.0 |
120 | + * @return void |
|
115 | 121 | */ |
116 | 122 | public function addFooter($text = ''); |
117 | 123 |
@@ -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 |