aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-17 21:15:24 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-17 21:15:24 +0100
commit875b8a72f97429c4e4df6d292daf4261fb7a45bd (patch)
tree55c06f3b199a952d539e5c8aa3ac2e50de3dbf4d
parent7f4ca35fc331ca4ce5e097d574e99417da0ef73e (diff)
Coding style endforeach (must be avoided)
-rw-r--r--app/views/configure/sharing.phtml8
-rw-r--r--app/views/index/normal.phtml4
-rw-r--r--app/views/stats/index.phtml4
3 files changed, 8 insertions, 8 deletions
diff --git a/app/views/configure/sharing.phtml b/app/views/configure/sharing.phtml
index b42825382..ffe3c039b 100644
--- a/app/views/configure/sharing.phtml
+++ b/app/views/configure/sharing.phtml
@@ -15,7 +15,7 @@
<a target="_blank" class="btn" title="<?php echo _t('conf.sharing.more_information'); ?>" href="##help##"><?php echo _i('help'); ?></a>
</div></div>'>
<legend><?php echo _t('conf.sharing'); ?></legend>
- <?php foreach (FreshRSS_Context::$conf->sharing as $key => $sharing): ?>
+ <?php foreach (FreshRSS_Context::$conf->sharing as $key => $sharing) { ?>
<?php $share = FreshRSS_Context::$conf->shares[$sharing['type']]; ?>
<div class="form-group" id="group-share-<?php echo $key; ?>">
<label class="group-name">
@@ -36,14 +36,14 @@
<?php } ?>
</div>
</div>
- <?php endforeach;?>
+ <?php } ?>
<div class="form-group">
<div class="group-controls">
<select>
- <?php foreach(FreshRSS_Context::$conf->shares as $key => $params):?>
+ <?php foreach(FreshRSS_Context::$conf->shares as $key => $params) { ?>
<option value='<?php echo $key?>' data-form='<?php echo $params['form']?>' data-help='<?php if (!empty($params['help'])) {echo $params['help'];}?>'><?php echo _t('conf.sharing.' . $key) ?></option>
- <?php endforeach; ?>
+ <?php } ?>
</select>
<a href='#' class='share add btn'><?php echo _i('add'); ?></a>
</div>
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index 66111397c..b8a78cc3d 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -141,7 +141,7 @@ if (!empty($this->entries)) {
<ul class="dropdown-menu">
<li class="dropdown-close"><a href="#close">❌</a></li>
<?php
- foreach ($sharing as $share) :
+ foreach ($sharing as $share) {
$type_share = FreshRSS_Context::$conf->shares[$share['type']];
$has_specific_title = ($type_share['form'] === 'advanced');
?>
@@ -150,7 +150,7 @@ if (!empty($this->entries)) {
<?php echo $has_specific_title ? $share['name'] : _t('index.share.' . $share['name']); ?>
</a>
</li>
- <?php endforeach;?>
+ <?php } ?>
</ul>
</div>
<?php } ?>
diff --git a/app/views/stats/index.phtml b/app/views/stats/index.phtml
index c13c5d26c..18bcd4d99 100644
--- a/app/views/stats/index.phtml
+++ b/app/views/stats/index.phtml
@@ -52,14 +52,14 @@
</tr>
</thead>
<tbody>
- <?php foreach ($this->topFeed as $feed): ?>
+ <?php foreach ($this->topFeed as $feed) { ?>
<tr>
<td><a href="<?php echo _url('stats', 'repartition', 'id', $feed['id']); ?>"><?php echo $feed['name']; ?></a></td>
<td><?php echo $feed['category']; ?></td>
<td class="numeric"><?php echo format_number($feed['count']); ?></td>
<td class="numeric"><?php echo format_number($feed['count'] / $this->repartition['all_feeds']['total'] * 100, 1);?></td>
</tr>
- <?php endforeach;?>
+ <?php } ?>
</tbody>
</table>
</div>