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/index/tos.phtml | |
| 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/index/tos.phtml')
| -rw-r--r-- | app/views/index/tos.phtml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/index/tos.phtml b/app/views/index/tos.phtml index 1b3498134..38dd0add6 100644 --- a/app/views/index/tos.phtml +++ b/app/views/index/tos.phtml @@ -1,13 +1,13 @@ <div class="post content"> <?php if ($this->can_register) { ?> - <a href="<?php echo _url('auth', 'register'); ?>"> - <?php echo _t('gen.action.back'); ?> + <a href="<?= _url('auth', 'register') ?>"> + <?= _t('gen.action.back') ?> </a> <?php } else { ?> - <a href="<?php echo _url('index', 'index'); ?>"> - <?php echo _t('gen.action.back'); ?> + <a href="<?= _url('index', 'index') ?>"> + <?= _t('gen.action.back') ?> </a> <?php } ?> - <?php echo $this->terms_of_service; ?> + <?= $this->terms_of_service ?> </div> |
