Issues (10)

src/recovery.php (1 issue)

1
<?php
2
3
/**
4
 * @var string $tokenUrl
5
 */
6
7
use terabytesoft\mail\views\user\assets\MailAsset;
8
use yii\helpers\Html;
9
10
MailAsset::register($this);
11
?>
12
13
<?= Html::beginTag('p', ['class' => 'mail-recovery']) ?>
14
    <?= \Yii::t('mail.views.user', 'Hello') . ',' ?>
15
<?= Html::endTag('p') ?>
16
17
<?= Html::beginTag('p', ['class' => 'mail-recovery']) ?>
18
    <?php \Yii::t(
19
        'mail.views.user',
20
        'We have received a request to reset the password for your account on {0}.',
21
        [\Yii::$app->name]
22
    ) .
23
    \Yii::t('mail.views.user', 'Please click the link below to complete your password reset.') ?>
24
<?= Html::endTag('p') ?>
25
26
<?= Html::beginTag('p', ['class' => 'mail-recovery']) ?>
27
    <?= Html::a(Html::encode($tokenUrl), $tokenUrl) ?>
28
<?= Html::endTag('p') ?>
29
30
<?= Html::beginTag('p', ['class' => 'mail-recovery']) ?>
31
    <?= \Yii::t('mail.views.user', 'If you cannot click the link, please try pasting the text into your browser.') ?>
32
<?= Html::endTag('p') ?>
33
34
<?= Html::beginTag('p', ['class' => 'mail-recovery']) ?>
35
    <?= \Yii::t('mail.views.user', 'If you did not make this request you can ignore this email.') ?>
0 ignored issues
show
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...
36
<?= Html::endTag('p');
37