summaryrefslogtreecommitdiffstats
path: root/custom/views/archive/index.tpl.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rdalverny@gmail.com>2022-01-11 12:36:17 +0100
committerRomain d'Alverny <rdalverny@gmail.com>2022-01-11 12:36:17 +0100
commit138865bbde25bb6193930c98e30c33913d19e367 (patch)
tree626e8e26dd4f4776ce9f8cd743987f08377127ed /custom/views/archive/index.tpl.php
parent5f2b708377aec4bc5f1d731dfbb50557552d0482 (diff)
downloadplanet-138865bbde25bb6193930c98e30c33913d19e367.tar
planet-138865bbde25bb6193930c98e30c33913d19e367.tar.gz
planet-138865bbde25bb6193930c98e30c33913d19e367.tar.bz2
planet-138865bbde25bb6193930c98e30c33913d19e367.tar.xz
planet-138865bbde25bb6193930c98e30c33913d19e367.zip
Install code QA helpers, enforce PSR2
Installs phpcs, phpmd, parallel-lint, phpstan.
Diffstat (limited to 'custom/views/archive/index.tpl.php')
-rwxr-xr-xcustom/views/archive/index.tpl.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/custom/views/archive/index.tpl.php b/custom/views/archive/index.tpl.php
index 16bc6ab..7dd2737 100755
--- a/custom/views/archive/index.tpl.php
+++ b/custom/views/archive/index.tpl.php
@@ -1,9 +1,9 @@
<?php
$count = 0;
-$today = Array();
-$week = Array();
-$month = Array();
-$older = Array();
+$today = array();
+$week = array();
+$month = array();
+$older = array();
$now = time();
foreach ($items as $item) {
@@ -45,11 +45,11 @@ header('Content-type: text/html; charset=UTF-8');
<p class="article-content"><?=_g('No news, good news.')?></p>
</div>
<?php endif; ?>
- <?php if (count($today)): ?>
+ <?php if (count($today)) : ?>
<div class="article">
<h2><?=_g('Today')?></h2>
<ul>
- <?php foreach ($today as $item): ?>
+ <?php foreach ($today as $item) : ?>
<?php $feed = $item->get_feed(); ?>
<li>
<a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> :
@@ -60,11 +60,11 @@ header('Content-type: text/html; charset=UTF-8');
</div>
<?php endif; ?>
- <?php if (count($week)): ?>
+ <?php if (count($week)) : ?>
<div class="article">
<h2><?=_g('This week')?></h2>
<ul>
- <?php foreach ($week as $item): ?>
+ <?php foreach ($week as $item) : ?>
<?php $feed = $item->get_feed(); ?>
<li>
<a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> :
@@ -75,11 +75,11 @@ header('Content-type: text/html; charset=UTF-8');
</div>
<?php endif; ?>
- <?php if (count($month)): ?>
+ <?php if (count($month)) : ?>
<div class="article">
<h2><?=_g('This month')?></h2>
<ul>
- <?php foreach ($month as $item): ?>
+ <?php foreach ($month as $item) : ?>
<?php $feed = $item->get_feed(); ?>
<li>
<a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> :
@@ -90,11 +90,11 @@ header('Content-type: text/html; charset=UTF-8');
</div>
<?php endif; ?>
- <?php if (count($older)): ?>
+ <?php if (count($older)) : ?>
<div class="article">
<h2><?=_g('Older items')?></h2>
<ul>
- <?php foreach ($older as $item): ?>
+ <?php foreach ($older as $item) : ?>
<?php $feed = $item->get_feed(); ?>
<li>
<a href="<?php echo $feed->getWebsite() ?>" class="source"><?php echo $feed->getName() ?></a> :