aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-19 21:55:49 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-19 21:55:49 +0200
commitea99ac1259083ff0a9eb6131d777454b54045626 (patch)
tree761d91117b24e695c9dfa3c407a0072afb4481f8
parent557e3723309301ede8afad3e0433a94317efc869 (diff)
Syntax 581
#581
-rw-r--r--app/Controllers/statsController.php2
-rw-r--r--app/views/stats/repartition.phtml10
2 files changed, 6 insertions, 6 deletions
diff --git a/app/Controllers/statsController.php b/app/Controllers/statsController.php
index 934b076a5..98f46f0d2 100644
--- a/app/Controllers/statsController.php
+++ b/app/Controllers/statsController.php
@@ -62,7 +62,7 @@ class FreshRSS_stats_Controller extends Minz_ActionController {
$feedDAO = FreshRSS_Factory::createFeedDao();
Minz_View::appendScript(Minz_Url::display('/scripts/flotr2.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/flotr2.min.js')));
$id = Minz_Request::param ('id', null);
- $this->view->categories = $categoryDAO->listCategories ();
+ $this->view->categories = $categoryDAO->listCategories();
$this->view->feed = $feedDAO->searchById($id);
$this->view->days = $statsDAO->getDays();
$this->view->months = $statsDAO->getMonths();
diff --git a/app/views/stats/repartition.phtml b/app/views/stats/repartition.phtml
index 3dc319731..1f920a7ae 100644
--- a/app/views/stats/repartition.phtml
+++ b/app/views/stats/repartition.phtml
@@ -6,16 +6,16 @@
<h1><?php echo _t('stats_repartition'); ?></h1>
<select id="feed_select">
- <option data-url="<?php echo _url ('stats', 'repartition')?>"></option>
+ <option data-url="<?php echo _url('stats', 'repartition')?>"></option>
<?php foreach ($this->categories as $category) {
- $feeds = $category->feeds ();
- if (!empty ($feeds)) {
+ $feeds = $category->feeds();
+ if (!empty($feeds)) {
echo '<optgroup label=', $category->name(), '>';
foreach ($feeds as $feed) {
if ($this->feed && $feed->id() == $this->feed->id()){
- echo '<option value ="', $feed->id(), '" selected data-url="', _url ('stats', 'repartition', 'id', $feed->id()), '">', $feed->name(), '</option>';
+ echo '<option value ="', $feed->id(), '" selected data-url="', _url('stats', 'repartition', 'id', $feed->id()), '">', $feed->name(), '</option>';
} else {
- echo '<option value ="', $feed->id(), '" data-url="', _url ('stats', 'repartition', 'id', $feed->id()), '">', $feed->name(), '</option>';
+ echo '<option value ="', $feed->id(), '" data-url="', _url('stats', 'repartition', 'id', $feed->id()), '">', $feed->name(), '</option>';
}
}
echo '</optgroup>';