aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Category.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-05 18:51:08 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-05 18:51:08 +0200
commitb5dee73ea0ab3cc24c4857ac102e9e78cf20ab92 (patch)
tree305145e4acbf3a69abf86e9c4a1e72506fe093f6 /app/Models/Category.php
parent9a0d01be0cb627b30424e9f938face34c6c3814d (diff)
Coding style
Remove spaces before parenthesis bis See https://github.com/marienfressinaud/FreshRSS/issues/655
Diffstat (limited to 'app/Models/Category.php')
-rw-r--r--app/Models/Category.php42
1 files changed, 21 insertions, 21 deletions
diff --git a/app/Models/Category.php b/app/Models/Category.php
index e5f6c4334..37cb44dc3 100644
--- a/app/Models/Category.php
+++ b/app/Models/Category.php
@@ -7,65 +7,65 @@ class FreshRSS_Category extends Minz_Model {
private $nbNotRead = -1;
private $feeds = null;
- public function __construct ($name = '', $feeds = null) {
- $this->_name ($name);
- if (isset ($feeds)) {
- $this->_feeds ($feeds);
+ public function __construct($name = '', $feeds = null) {
+ $this->_name($name);
+ if (isset($feeds)) {
+ $this->_feeds($feeds);
$this->nbFeed = 0;
$this->nbNotRead = 0;
foreach ($feeds as $feed) {
$this->nbFeed++;
- $this->nbNotRead += $feed->nbNotRead ();
+ $this->nbNotRead += $feed->nbNotRead();
}
}
}
- public function id () {
+ public function id() {
return $this->id;
}
- public function name () {
+ public function name() {
return $this->name;
}
- public function nbFeed () {
+ public function nbFeed() {
if ($this->nbFeed < 0) {
- $catDAO = new FreshRSS_CategoryDAO ();
- $this->nbFeed = $catDAO->countFeed ($this->id ());
+ $catDAO = new FreshRSS_CategoryDAO();
+ $this->nbFeed = $catDAO->countFeed($this->id());
}
return $this->nbFeed;
}
- public function nbNotRead () {
+ public function nbNotRead() {
if ($this->nbNotRead < 0) {
- $catDAO = new FreshRSS_CategoryDAO ();
- $this->nbNotRead = $catDAO->countNotRead ($this->id ());
+ $catDAO = new FreshRSS_CategoryDAO();
+ $this->nbNotRead = $catDAO->countNotRead($this->id());
}
return $this->nbNotRead;
}
- public function feeds () {
+ public function feeds() {
if ($this->feeds === null) {
$feedDAO = FreshRSS_Factory::createFeedDao();
- $this->feeds = $feedDAO->listByCategory ($this->id ());
+ $this->feeds = $feedDAO->listByCategory($this->id());
$this->nbFeed = 0;
$this->nbNotRead = 0;
foreach ($this->feeds as $feed) {
$this->nbFeed++;
- $this->nbNotRead += $feed->nbNotRead ();
+ $this->nbNotRead += $feed->nbNotRead();
}
}
return $this->feeds;
}
- public function _id ($value) {
+ public function _id($value) {
$this->id = $value;
}
- public function _name ($value) {
+ public function _name($value) {
$this->name = substr(trim($value), 0, 255);
}
- public function _feeds ($values) {
- if (!is_array ($values)) {
- $values = array ($values);
+ public function _feeds($values) {
+ if (!is_array($values)) {
+ $values = array($values);
}
$this->feeds = $values;