diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 18:19:23 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-10-21 18:19:23 +0200 |
commit | 66c73a96ac2dda076bcfe0dc0a1ca2a7e169149d (patch) | |
tree | dc0318fa459e4f313217ee38e4bc63524513d721 /service/itemservice.php | |
parent | f5e64d35c05b14016eb4fffff7199386a97a9b43 (diff) |
first try to set indention limit at 80 characters in php
Diffstat (limited to 'service/itemservice.php')
-rw-r--r-- | service/itemservice.php | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/service/itemservice.php b/service/itemservice.php index 1b94c089f..628f89206 100644 --- a/service/itemservice.php +++ b/service/itemservice.php @@ -106,13 +106,16 @@ class ItemService extends Service { * Star or unstar an item * @param int $feedId the id of the item's feed that should be starred * @param string $guidHash the guidHash of the item that should be starred - * @param boolean $isStarred if true the item will be marked as starred, if false unstar + * @param boolean $isStarred if true the item will be marked as starred, + * if false unstar * @param string $userId the name of the user for security reasons * @throws ServiceNotFoundException if the item does not exist */ public function star($feedId, $guidHash, $isStarred, $userId){ try { - $item = $this->itemMapper->findByGuidHash($guidHash, $feedId, $userId); + $item = $this->itemMapper->findByGuidHash( + $guidHash, $feedId, $userId + ); $item->setLastModified($this->timeFactory->getTime()); if($isStarred){ @@ -130,7 +133,8 @@ class ItemService extends Service { /** * Read or unread an item * @param int $itemId the id of the item that should be read - * @param boolean $isRead if true the item will be marked as read, if false unread + * @param boolean $isRead if true the item will be marked as read, + * if false unread * @param string $userId the name of the user for security reasons * @throws ServiceNotFoundException if the item does not exist */ @@ -148,8 +152,8 @@ class ItemService extends Service { /** * Set all items read - * @param int $highestItemId all items below that are marked read. This is used - * to prevent marking items as read that the users hasn't seen yet + * @param int $highestItemId all items below that are marked read. This is + * used to prevent marking items as read that the users hasn't seen yet * @param string $userId the name of the user */ public function readAll($highestItemId, $userId){ @@ -161,21 +165,23 @@ class ItemService extends Service { /** * Set a folder read * @param int $folderId the id of the folder that should be marked read - * @param int $highestItemId all items below that are marked read. This is used - * to prevent marking items as read that the users hasn't seen yet + * @param int $highestItemId all items below that are marked read. This is + * used to prevent marking items as read that the users hasn't seen yet * @param string $userId the name of the user */ public function readFolder($folderId, $highestItemId, $userId){ $time = $this->timeFactory->getTime(); - $this->itemMapper->readFolder($folderId, $highestItemId, $time, $userId); + $this->itemMapper->readFolder( + $folderId, $highestItemId, $time, $userId + ); } /** * Set a feed read * @param int $feedId the id of the feed that should be marked read - * @param int $highestItemId all items below that are marked read. This is used - * to prevent marking items as read that the users hasn't seen yet + * @param int $highestItemId all items below that are marked read. This is + * used to prevent marking items as read that the users hasn't seen yet * @param string $userId the name of the user */ public function readFeed($feedId, $highestItemId, $userId){ |