summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-06-26 11:33:44 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-06-26 11:33:44 +0200
commitcd10f93e0d271840caff92b88195385a2a3f15b2 (patch)
treecf9e3724c35bba4cdd82e443938151bf189802cc /db
parent06367d8b81407fc2948e0f666b38f4de2dffbd89 (diff)
style fixes
Diffstat (limited to 'db')
-rw-r--r--db/feedmapper.php2
-rw-r--r--db/imapper.php4
-rw-r--r--db/itemmapper.php2
-rw-r--r--db/mapperfactory.php1
4 files changed, 5 insertions, 4 deletions
diff --git a/db/feedmapper.php b/db/feedmapper.php
index 21fbd1d12..dde806208 100644
--- a/db/feedmapper.php
+++ b/db/feedmapper.php
@@ -85,7 +85,7 @@ class FeedMapper extends Mapper implements IMapper {
'LEFT JOIN `*PREFIX*news_items` `items` ' .
'ON `feeds`.`id` = `items`.`feed_id` ' .
// WARNING: this is a desperate attempt at making this query work
- // because prepared statements dont work. This is a possible
+ // because prepared statements don't work. This is a possible
// SQL INJECTION RISK WHEN MODIFIED WITHOUT THOUGHT.
// think twice when changing this
'AND (`items`.`status` & ' . StatusFlag::UNREAD . ') = ' .
diff --git a/db/imapper.php b/db/imapper.php
index 9882060f0..18a924e24 100644
--- a/db/imapper.php
+++ b/db/imapper.php
@@ -20,13 +20,15 @@ interface IMapper {
/**
* @param int $id the id of the feed
* @param string $userId the id of the user
+ * @return \OCP\AppFramework\Db\Entity
*/
public function find($id, $userId);
/**
* Delete an entity
* @param Entity $entity the entity that should be deleted
- * @throws ServiceNotFoundException if the entity does not exist, or there
+ * @throws \OCP\AppFramework\Db\DoesNotExistException if the entity does
+ * not exist, or there
* are more than one of it
*/
public function delete(Entity $entity);
diff --git a/db/itemmapper.php b/db/itemmapper.php
index 477848a32..c7a0902ca 100644
--- a/db/itemmapper.php
+++ b/db/itemmapper.php
@@ -80,7 +80,7 @@ class ItemMapper extends Mapper implements IMapper {
'ON `items`.`feed_id` = `feeds`.`id` ' .
'AND `feeds`.`user_id` = ? ' .
// WARNING: this is a desperate attempt at making this query work
- // because prepared statements dont work. This is a possible
+ // because prepared statements don't work. This is a possible
// SQL INJECTION RISK WHEN MODIFIED WITHOUT THOUGHT.
// think twice when changing this
'WHERE ((`items`.`status` & ' . StatusFlag::STARRED . ') = ' .
diff --git a/db/mapperfactory.php b/db/mapperfactory.php
index 339ff30b8..4af75cefa 100644
--- a/db/mapperfactory.php
+++ b/db/mapperfactory.php
@@ -13,7 +13,6 @@
namespace OCA\News\Db;
-use \OCP\IConfig;
use \OCP\IDb;
use \OCA\News\Db\Postgres\ItemMapper as PostgresItemMapper;