diff options
| author | 2019-10-23 11:18:20 +0200 | |
|---|---|---|
| committer | 2019-10-23 11:18:20 +0200 | |
| commit | 7a5236de3f13f08b8c51eb183c0dcf1c8c85beca (patch) | |
| tree | 10a09f07458ed1279e62646188cb42e87fe0ed8f /app/views/user_mailer | |
| parent | fdfd8ce9be182943e73d20ec3bff4d560c5b7503 (diff) | |
Take advantage of PHP 5.4+ short echo (#2585)
* Take advantage of PHP 5.4+ short echo
https://php.net/migration54.new-features thanks to
https://github.com/FreshRSS/FreshRSS/pull/2495
Use `<?= ?>` instead of `<?php echo; ?>`
10kB of code saved :-)
Done with regular expression:
```
<\?php echo (.+?);? *\?>
<?= \1 ?>
```
* Try Travis fix
https://github.com/squizlabs/PHP_CodeSniffer/issues/2045#issuecomment-395238272
Diffstat (limited to 'app/views/user_mailer')
| -rw-r--r-- | app/views/user_mailer/email_need_validation.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/user_mailer/email_need_validation.txt b/app/views/user_mailer/email_need_validation.txt index 13b63c1af..c1f4d9911 100644 --- a/app/views/user_mailer/email_need_validation.txt +++ b/app/views/user_mailer/email_need_validation.txt @@ -1,5 +1,5 @@ -<?php echo _t('user.mailer.email_need_validation.welcome', $this->username); ?> +<?= _t('user.mailer.email_need_validation.welcome', $this->username) ?> -<?php echo _t('user.mailer.email_need_validation.body', $this->site_title); ?> +<?= _t('user.mailer.email_need_validation.body', $this->site_title) ?> -<?php echo $this->validation_url; ?> +<?= $this->validation_url ?> |
