aboutsummaryrefslogtreecommitdiff
path: root/app/views/index/normal.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2021-02-28 12:26:24 +0100
committerGravatar GitHub <noreply@github.com> 2021-02-28 12:26:24 +0100
commit947e918f05d70d5dce4efa4ef403e593581c3fa9 (patch)
treee66ef1ffe8a6cc0ffbea1bff1791588f72879637 /app/views/index/normal.phtml
parentbf2718cada964fba66d8497592abcb73cb9520ba (diff)
Travis: Enforce phpcs line length + whitespace (#3488)
* Update Travis line length * Also check whitespace in CSS files * Fix line length ext.php * More syntax, string templates * Fix exclude-pattern * Test JS files as well
Diffstat (limited to 'app/views/index/normal.phtml')
-rw-r--r--app/views/index/normal.phtml16
1 files changed, 10 insertions, 6 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index aee7246d0..ba941066e 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -61,10 +61,10 @@ $today = @strtotime('today');
?></div><?php
$display_others = false;
}
- ?><div class="flux<?php echo !$this->entry->isRead() ? ' not_read' : '';
- ?><?php echo $this->entry->isFavorite() ? ' favorite' : '';
- ?>" id="flux_<?php echo $this->entry->id();
- ?>" data-feed="<?php echo $this->feed->id();
+ ?><div class="flux<?= !$this->entry->isRead() ? ' not_read' : ''
+ ?><?= $this->entry->isFavorite() ? ' favorite' : ''
+ ?>" id="flux_<?= $this->entry->id()
+ ?>" data-feed="<?= $this->feed->id()
?>"><?php
$this->renderHelper('index/normal/entry_header');
@@ -74,7 +74,9 @@ $today = @strtotime('today');
<h1 class="title"><a target="_blank" rel="noreferrer" class="go_website" href="<?= $this->entry->link() ?>"><?= $this->entry->title() ?></a></h1>
<div class="subtitle">
<div class="website"><a href="<?= _url('index', 'index', 'get', 'f_' . $this->feed->id()) ?>">
- <?php if (FreshRSS_Context::$user_conf->show_favicons): ?><img class="favicon" src="<?= $this->feed->favicon() ?>" alt="✇" loading="lazy" /><?php endif; ?>
+ <?php if (FreshRSS_Context::$user_conf->show_favicons): ?>
+ <img class="favicon" src="<?= $this->feed->favicon() ?>" alt="✇" loading="lazy" />
+ <?php endif; ?>
<span><?= $this->feed->name() ?></span></a>
</div>
<div class="date"><?= $this->entry->date() ?></div>
@@ -88,7 +90,9 @@ $today = @strtotime('today');
echo $first ? _t('gen.short.by_author') . ' ' : '· ';
$first = false;
?>
- <em><a href="<?= Minz_Url::display(Minz_Request::modifiedCurrentRequest(['search' => 'author:"' . htmlspecialchars_decode($author, ENT_QUOTES) . '"'])) ?>"><?= $author ?></a></em>
+ <em><a href="<?= Minz_Url::display(Minz_Request::modifiedCurrentRequest(
+ ['search' => 'author:"' . htmlspecialchars_decode($author, ENT_QUOTES) . '"'])
+ ) ?>"><?= $author ?></a></em>
<?php endforeach; ?>
</div><?php endif; ?>
</div>