aboutsummaryrefslogtreecommitdiff
path: root/app/views/index/about.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-10-23 11:18:20 +0200
committerGravatar GitHub <noreply@github.com> 2019-10-23 11:18:20 +0200
commit7a5236de3f13f08b8c51eb183c0dcf1c8c85beca (patch)
tree10a09f07458ed1279e62646188cb42e87fe0ed8f /app/views/index/about.phtml
parentfdfd8ce9be182943e73d20ec3bff4d560c5b7503 (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/about.phtml')
-rw-r--r--app/views/index/about.phtml26
1 files changed, 13 insertions, 13 deletions
diff --git a/app/views/index/about.phtml b/app/views/index/about.phtml
index 649729952..320847886 100644
--- a/app/views/index/about.phtml
+++ b/app/views/index/about.phtml
@@ -1,26 +1,26 @@
<div class="post content">
- <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>
+ <a href="<?= _url('index', 'index') ?>"><?= _t('gen.action.back_to_rss_feeds') ?></a>
- <h1><?php echo _t('index.about'); ?></h1>
+ <h1><?= _t('index.about') ?></h1>
<dl class="infos">
- <dt><?php echo _t('index.about.project_website'); ?></dt>
- <dd><a href="<?php echo FRESHRSS_WEBSITE; ?>"><?php echo FRESHRSS_WEBSITE; ?></a></dd>
+ <dt><?= _t('index.about.project_website') ?></dt>
+ <dd><a href="<?= FRESHRSS_WEBSITE ?>"><?= FRESHRSS_WEBSITE ?></a></dd>
- <dt><?php echo _t('index.about.bugs_reports'); ?></dt>
- <dd><?php echo _t('index.about.github'); ?></dd>
+ <dt><?= _t('index.about.bugs_reports') ?></dt>
+ <dd><?= _t('index.about.github') ?></dd>
- <dt><?php echo _t('index.about.license'); ?></dt>
- <dd><?php echo _t('index.about.agpl3'); ?></dd>
+ <dt><?= _t('index.about.license') ?></dt>
+ <dd><?= _t('index.about.agpl3') ?></dd>
<?php if (FreshRSS_Auth::hasAccess()): ?>
- <dt><?php echo _t('index.about.version'); ?></dt>
- <dd><?php echo FRESHRSS_VERSION; ?></dd>
+ <dt><?= _t('index.about.version') ?></dt>
+ <dd><?= FRESHRSS_VERSION ?></dd>
<?php endif; ?>
</dl>
- <p><?php echo _t('index.about.freshrss_description'); ?></p>
+ <p><?= _t('index.about.freshrss_description') ?></p>
- <h1><?php echo _t('index.about.credits'); ?></h1>
- <p><?php echo _t('index.about.credits_content'); ?></p>
+ <h1><?= _t('index.about.credits') ?></h1>
+ <p><?= _t('index.about.credits_content') ?></p>
</div>