summaryrefslogtreecommitdiffstats
path: root/lib/Db/Mysql/ItemMapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Db/Mysql/ItemMapper.php')
-rw-r--r--lib/Db/Mysql/ItemMapper.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Db/Mysql/ItemMapper.php b/lib/Db/Mysql/ItemMapper.php
index 4244faedb..42c3b44e1 100644
--- a/lib/Db/Mysql/ItemMapper.php
+++ b/lib/Db/Mysql/ItemMapper.php
@@ -45,12 +45,11 @@ class ItemMapper extends \OCA\News\Db\ItemMapper
$params = [false, false, $threshold];
$result = $this->execute($sql, $params);
- while($row = $result->fetch()) {
-
+ while ($row = $result->fetch()) {
$size = (int) $row['size'];
$limit = $size - $threshold;
- if($limit > 0) {
+ if ($limit > 0) {
$params = [false, false, $row['feed_id'], $limit];
$sql = 'DELETE FROM `*PREFIX*news_items` ' .
@@ -63,10 +62,9 @@ class ItemMapper extends \OCA\News\Db\ItemMapper
$this->execute($sql, $params);
}
}
-
}
- public function readItem($itemId, $isRead, $lastModified, $userId)
+ public function readItem($itemId, $isRead, $lastModified, $userId)
{
$item = $this->find($itemId, $userId);
@@ -86,5 +84,4 @@ class ItemMapper extends \OCA\News\Db\ItemMapper
$this->update($item);
}
}
-
}