aboutsummaryrefslogtreecommitdiff
path: root/app/views/index
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-05 19:11:43 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-05 19:11:43 +0200
commit65ab90d3c77085abe9eb259bd7780f648051d49d (patch)
tree44fef5098d9997906cc4a635d0d39c232387a3aa /app/views/index
parentb5dee73ea0ab3cc24c4857ac102e9e78cf20ab92 (diff)
Coding style (views)
See https://github.com/marienfressinaud/FreshRSS/issues/655
Diffstat (limited to 'app/views/index')
-rw-r--r--app/views/index/index.phtml18
-rw-r--r--app/views/index/login.phtml2
-rw-r--r--app/views/index/logs.phtml14
3 files changed, 17 insertions, 17 deletions
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml
index 1ff36ca8e..5e935b81e 100644
--- a/app/views/index/index.phtml
+++ b/app/views/index/index.phtml
@@ -1,25 +1,25 @@
<?php
-$output = Minz_Request::param ('output', 'normal');
+$output = Minz_Request::param('output', 'normal');
if ($this->loginOk || Minz_Configuration::allowAnonymous()) {
if ($output === 'normal') {
- $this->renderHelper ('view/normal_view');
+ $this->renderHelper('view/normal_view');
} elseif ($output === 'reader') {
- $this->renderHelper ('view/reader_view');
+ $this->renderHelper('view/reader_view');
} elseif ($output === 'global') {
- $this->renderHelper ('view/global_view');
+ $this->renderHelper('view/global_view');
} elseif ($output === 'rss') {
- $this->renderHelper ('view/rss_view');
+ $this->renderHelper('view/rss_view');
} else {
- Minz_Request::_param ('output', 'normal');
+ Minz_Request::_param('output', 'normal');
$output = 'normal';
- $this->renderHelper ('view/normal_view');
+ $this->renderHelper('view/normal_view');
}
} elseif ($output === 'rss') {
// token has already been checked in the controller so we can show the view
- $this->renderHelper ('view/rss_view');
+ $this->renderHelper('view/rss_view');
} else {
// Normally, it should not happen, but log it anyway
- Minz_Log::record ('Something is wrong in ' . __FILE__ . ' line ' . __LINE__, Minz_Log::ERROR);
+ Minz_Log::record('Something is wrong in ' . __FILE__ . ' line ' . __LINE__, Minz_Log::ERROR);
}
diff --git a/app/views/index/login.phtml b/app/views/index/login.phtml
index cc814deff..79fbe9d21 100644
--- a/app/views/index/login.phtml
+++ b/app/views/index/login.phtml
@@ -1 +1 @@
-<?php print_r ($this->res); ?>
+<?php print_r($this->res); ?>
diff --git a/app/views/index/logs.phtml b/app/views/index/logs.phtml
index 18629ed9e..101692daf 100644
--- a/app/views/index/logs.phtml
+++ b/app/views/index/logs.phtml
@@ -1,23 +1,23 @@
<div class="post content">
- <a href="<?php echo _url ('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a>
+ <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a>
<h1><?php echo _t('logs'); ?></h1>
- <form method="post" action="<?php echo _url ('index', 'logs'); ?>"><p>
+ <form method="post" action="<?php echo _url('index', 'logs'); ?>"><p>
<input type="hidden" name="clearLogs" />
<button type="submit" class="btn"><?php echo _t('clear_logs'); ?></button>
</p></form>
- <?php $items = $this->logsPaginator->items (); ?>
+ <?php $items = $this->logsPaginator->items(); ?>
- <?php if (!empty ($items)) { ?>
+ <?php if (!empty($items)) { ?>
<div class="logs">
- <?php $this->logsPaginator->render ('logs_pagination.phtml', 'page'); ?>
+ <?php $this->logsPaginator->render('logs_pagination.phtml', 'page'); ?>
<?php foreach ($items as $log) { ?>
- <div class="log <?php echo $log->level (); ?>"><span class="date"><?php echo @date ('Y-m-d H:i:s', @strtotime ($log->date ())); ?></span><?php echo htmlspecialchars ($log->info (), ENT_NOQUOTES, 'UTF-8'); ?></div>
+ <div class="log <?php echo $log->level(); ?>"><span class="date"><?php echo @date('Y-m-d H:i:s', @strtotime($log->date())); ?></span><?php echo htmlspecialchars($log->info(), ENT_NOQUOTES, 'UTF-8'); ?></div>
<?php } ?>
- <?php $this->logsPaginator->render ('logs_pagination.phtml','page'); ?>
+ <?php $this->logsPaginator->render('logs_pagination.phtml','page'); ?>
</div>
<?php } else { ?>
<p class="alert alert-warn"><?php echo _t('logs_empty'); ?></p>