diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 16:45:36 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 16:45:36 +0200 |
commit | 42d69a95f3276a2d6089ca68f635c4e2f6aa7a23 (patch) | |
tree | 6a17fd7998f291e6dec1d996c1e7c724b92b8e58 /db/statusflag.php | |
parent | 0e6598b0734fb927109f745d9c0f3a8605a30ca5 (diff) |
convert tabs indention to indention with 4 spaces because of mixing of both variants in code and better readability on github and websites because you cant set the indention width there and 8 spaces will be used for a tab
Diffstat (limited to 'db/statusflag.php')
-rw-r--r-- | db/statusflag.php | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/db/statusflag.php b/db/statusflag.php index d24f81275..a3bfd4b18 100644 --- a/db/statusflag.php +++ b/db/statusflag.php @@ -14,30 +14,30 @@ namespace OCA\News\Db; class StatusFlag { - const UNREAD = 0x02; - const STARRED = 0x04; - const DELETED = 0x08; - const UPDATED = 0x16; - - - /** - * Get status for query - */ - public function typeToStatus($type, $showAll){ - if($type === FeedType::STARRED){ - return self::STARRED; - } else { - $status = 0; - } - - if($showAll){ - $status &= ~self::UNREAD; - } else { - $status |= self::UNREAD; - } - - return $status; - } + const UNREAD = 0x02; + const STARRED = 0x04; + const DELETED = 0x08; + const UPDATED = 0x16; + + + /** + * Get status for query + */ + public function typeToStatus($type, $showAll){ + if($type === FeedType::STARRED){ + return self::STARRED; + } else { + $status = 0; + } + + if($showAll){ + $status &= ~self::UNREAD; + } else { + $status |= self::UNREAD; + } + + return $status; + } }
\ No newline at end of file |