summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/item.php4
-rw-r--r--db/itemmapper.php9
-rw-r--r--db/newsmapper.php2
3 files changed, 10 insertions, 5 deletions
diff --git a/db/item.php b/db/item.php
index 23c68f2cd..3d12692bc 100644
--- a/db/item.php
+++ b/db/item.php
@@ -219,7 +219,9 @@ class Item extends Entity implements IAPI, \JsonSerializable {
public function setBody($body) {
// FIXME: this should not happen if the target="_blank" is already
// on the link
- parent::setBody(str_replace('<a', '<a target="_blank" rel="noreferrer"', $body));
+ parent::setBody(str_replace(
+ '<a', '<a target="_blank" rel="noreferrer"', $body
+ ));
}
}
diff --git a/db/itemmapper.php b/db/itemmapper.php
index d68b1fbec..0ea3b77fc 100644
--- a/db/itemmapper.php
+++ b/db/itemmapper.php
@@ -200,7 +200,8 @@ class ItemMapper extends NewsMapper {
$this->getOperator($oldestFirst) . ' ? ';
$params[] = $offset;
}
- $sql = $this->makeSelectQueryStatus($sql, $status, $oldestFirst, $search);
+ $sql = $this->makeSelectQueryStatus($sql, $status, $oldestFirst,
+ $search);
return $this->findEntitiesIgnoringNegativeLimit($sql, $params, $limit);
}
@@ -217,7 +218,8 @@ class ItemMapper extends NewsMapper {
$this->getOperator($oldestFirst) . ' ? ';
$params[] = $offset;
}
- $sql = $this->makeSelectQueryStatus($sql, $status, $oldestFirst, $search);
+ $sql = $this->makeSelectQueryStatus($sql, $status, $oldestFirst,
+ $search);
return $this->findEntitiesIgnoringNegativeLimit($sql, $params, $limit);
}
@@ -232,7 +234,8 @@ class ItemMapper extends NewsMapper {
$this->getOperator($oldestFirst) . ' ? ';
$params[] = $offset;
}
- $sql = $this->makeSelectQueryStatus($sql, $status, $oldestFirst, $search);
+ $sql = $this->makeSelectQueryStatus($sql, $status, $oldestFirst,
+ $search);
return $this->findEntitiesIgnoringNegativeLimit($sql, $params, $limit);
}
diff --git a/db/newsmapper.php b/db/newsmapper.php
index d946a28a6..5f857d8ee 100644
--- a/db/newsmapper.php
+++ b/db/newsmapper.php
@@ -28,7 +28,7 @@ abstract class NewsMapper extends Mapper {
* @param string $userId the id of the user
* @return \OCP\AppFramework\Db\Entity
*/
- public abstract function find($id, $userId);
+ abstract public function find($id, $userId);
} \ No newline at end of file