diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-21 21:53:11 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-03-21 21:53:11 +0100 |
commit | 4ee93da76cc40c39ebbd494b979d4217857b32dc (patch) | |
tree | 4203e07d85e8d7632b32961d1be504c16b2f2ae5 /db | |
parent | 169ff3f3aa34382ae576ce2468b1961a203b49d7 (diff) |
more style fixes
Diffstat (limited to 'db')
-rw-r--r-- | db/item.php | 4 | ||||
-rw-r--r-- | db/itemmapper.php | 9 | ||||
-rw-r--r-- | db/newsmapper.php | 2 |
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 |