Completed
Pull Request — master (#8026)
by Joas
158:50 queued 129:12
created
lib/private/Mail/EMailTemplate.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
 
402 402
 		$this->htmlBody .= vsprintf($this->heading, [htmlspecialchars($title)]);
403 403
 		if ($plainTitle !== false) {
404
-			$this->plainBody .= $plainTitle . PHP_EOL . PHP_EOL;
404
+			$this->plainBody .= $plainTitle.PHP_EOL.PHP_EOL;
405 405
 		}
406 406
 	}
407 407
 
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
 
437 437
 		$this->htmlBody .= vsprintf($this->bodyText, [$text]);
438 438
 		if ($plainText !== false) {
439
-			$this->plainBody .= $plainText . PHP_EOL . PHP_EOL;
439
+			$this->plainBody .= $plainText.PHP_EOL.PHP_EOL;
440 440
 		}
441 441
 	}
442 442
 
@@ -464,18 +464,18 @@  discard block
 block discarded – undo
464 464
 
465 465
 		$htmlText = $text;
466 466
 		if ($metaInfo) {
467
-			$htmlText = '<em style="color:#777;">' . $metaInfo . '</em><br>' . $htmlText;
467
+			$htmlText = '<em style="color:#777;">'.$metaInfo.'</em><br>'.$htmlText;
468 468
 		}
469 469
 		if ($icon !== '') {
470
-			$icon = '<img src="' . htmlspecialchars($icon) . '" alt="&bull;">';
470
+			$icon = '<img src="'.htmlspecialchars($icon).'" alt="&bull;">';
471 471
 		} else {
472 472
 			$icon = '&bull;';
473 473
 		}
474 474
 		$this->htmlBody .= vsprintf($this->listItem, [$icon, $htmlText]);
475 475
 		if ($plainText !== false) {
476
-			$this->plainBody .= '  * ' . $plainText;
476
+			$this->plainBody .= '  * '.$plainText;
477 477
 			if ($plainMetaInfo !== false) {
478
-				$this->plainBody .= ' (' . $plainMetaInfo . ')';
478
+				$this->plainBody .= ' ('.$plainMetaInfo.')';
479 479
 			}
480 480
 			$this->plainBody .= PHP_EOL;
481 481
 		}
@@ -534,8 +534,8 @@  discard block
 block discarded – undo
534 534
 		$textColor = $this->themingDefaults->getTextColorPrimary();
535 535
 
536 536
 		$this->htmlBody .= vsprintf($this->buttonGroup, [$color, $color, $urlLeft, $color, $textColor, $textColor, $textLeft, $urlRight, $textRight]);
537
-		$this->plainBody .= $plainTextLeft . ': ' . $urlLeft . PHP_EOL;
538
-		$this->plainBody .= $plainTextRight . ': ' . $urlRight . PHP_EOL . PHP_EOL;
537
+		$this->plainBody .= $plainTextLeft.': '.$urlLeft.PHP_EOL;
538
+		$this->plainBody .= $plainTextRight.': '.$urlRight.PHP_EOL.PHP_EOL;
539 539
 
540 540
 	}
541 541
 
@@ -566,10 +566,10 @@  discard block
 block discarded – undo
566 566
 		$this->htmlBody .= vsprintf($this->button, [$color, $color, $url, $color, $textColor, $textColor, $text]);
567 567
 
568 568
 		if ($plainText !== false) {
569
-			$this->plainBody .= $plainText . ': ';
569
+			$this->plainBody .= $plainText.': ';
570 570
 		}
571 571
 
572
-		$this->plainBody .=  $url . PHP_EOL;
572
+		$this->plainBody .= $url.PHP_EOL;
573 573
 
574 574
 	}
575 575
 
@@ -593,8 +593,8 @@  discard block
 block discarded – undo
593 593
 	 * @param string $text If the text is empty the default "Name - Slogan<br>This is an automatically sent email" will be used
594 594
 	 */
595 595
 	public function addFooter($text = '') {
596
-		if($text === '') {
597
-			$text = $this->themingDefaults->getName() . ' - ' . $this->themingDefaults->getSlogan() . '<br>' . $this->l10n->t('This is an automatically sent email, please do not reply.');
596
+		if ($text === '') {
597
+			$text = $this->themingDefaults->getName().' - '.$this->themingDefaults->getSlogan().'<br>'.$this->l10n->t('This is an automatically sent email, please do not reply.');
598 598
 		}
599 599
 
600 600
 		if ($this->footerAdded) {
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
 
607 607
 		$this->htmlBody .= vsprintf($this->footer, [$text]);
608 608
 		$this->htmlBody .= $this->tail;
609
-		$this->plainBody .= PHP_EOL . '-- ' . PHP_EOL;
609
+		$this->plainBody .= PHP_EOL.'-- '.PHP_EOL;
610 610
 		$this->plainBody .= str_replace('<br>', PHP_EOL, $text);
611 611
 	}
612 612
 
Please login to merge, or discard this patch.