aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-01-15 15:43:01 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-01-17 15:05:06 +0100
commit021f9b855ecacbbcc040bfbfce8f6cce6da9b5c1 (patch)
tree6fbe1ef9e8c660adf2287bf78e0b0dbec223f97d /templates
parente6f294a126cb6fe34ab48d87dcb64b20b6944948 (diff)
remove whitespace and add php docblock, fixes #5128
Closes #5128 Merge request studip/studip!3833
Diffstat (limited to 'templates')
-rw-r--r--templates/mail/text.php20
1 files changed, 13 insertions, 7 deletions
diff --git a/templates/mail/text.php b/templates/mail/text.php
index 7239417..a614f1b 100644
--- a/templates/mail/text.php
+++ b/templates/mail/text.php
@@ -1,11 +1,18 @@
-<?
-# Lifter010: TODO
+<?php
+/**
+ * @var string $message
+ * @var FileRef[]|null $attachments
+ * @var string $snd_fullname
+ * @var string $snd_email
+ * @var string $rec_fullname
+ * @var string $rec_email
+ */
?>
<?= $message ?>
<? if (isset($attachments) && count($attachments)) : ?>
- <?= _("Dateianhänge:") ?>
+ <?= _('Dateianhänge:') ?>
<? foreach ($attachments as $attachment) : ?>
<?= $attachment->name . ' (' . relsize($attachment->file->size, false) . ')' ?>
@@ -16,11 +23,10 @@
<? endforeach; ?>
<? endif; ?>
-
--
<? if ($snd_fullname) : ?>
- <?= sprintf(_('Diese E-Mail ist eine Kopie einer systeminternen Nachricht, die in Stud.IP von %s (%s) an %s (%s) versendet wurde.'), $snd_fullname, $snd_email, $rec_fullname, $rec_email) ?>
+<?= sprintf(_('Diese E-Mail ist eine Kopie einer systeminternen Nachricht, die in Stud.IP von %s (%s) an %s (%s) versendet wurde.'), $snd_fullname, $snd_email, $rec_fullname, $rec_email) ?>
<? else : ?>
- <?= sprintf(_("Diese E-Mail ist eine Kopie einer systeminternen Nachricht, die in Stud.IP an %s versendet wurde."), $rec_fullname) ?>
+<?= sprintf(_('Diese E-Mail ist eine Kopie einer systeminternen Nachricht, die in Stud.IP an %s versendet wurde.'), $rec_fullname) ?>
<? endif ?>
-<?= sprintf(_("Sie erreichen Stud.IP unter %s"), $GLOBALS['ABSOLUTE_URI_STUDIP']) ?>
+<?= sprintf(_('Sie erreichen Stud.IP unter %s'), $GLOBALS['ABSOLUTE_URI_STUDIP']) ?>