fixed more indentations

This commit is contained in:
Jonathan Treffler 2025-07-02 14:46:05 +02:00
parent acf8990de1
commit f031591753
9 changed files with 148 additions and 148 deletions

View file

@ -9,29 +9,29 @@ use OCP\AppFramework\Db\QBMapper;
*/
class DiffTaskResultMapper extends QBMapper {
public function __construct(IDBConnection $db) {
parent::__construct($db, 'groupfolder_snapshots_task_results', DiffTaskResult::class);
}
public function __construct(IDBConnection $db) {
parent::__construct($db, 'groupfolder_snapshots_task_results', DiffTaskResult::class);
}
public function find(int $id) {
$qb = $this->db->getQueryBuilder();
public function find(int $id) {
$qb = $this->db->getQueryBuilder();
$qb->select('*')
->from($this->getTableName())
->where($qb->expr()->eq('id', $qb->createNamedParameter($id)));
$qb->select('*')
->from($this->getTableName())
->where($qb->expr()->eq('id', $qb->createNamedParameter($id)));
return $this->findEntity($qb);
}
return $this->findEntity($qb);
}
public function findAll(int $taskId) {
$qb = $this->db->getQueryBuilder();
public function findAll(int $taskId) {
$qb = $this->db->getQueryBuilder();
$qb->select('*')
->from($this->getTableName())
->where($qb->expr()->eq('task_id', $qb->createNamedParameter($taskId)));
$qb->select('*')
->from($this->getTableName())
->where($qb->expr()->eq('task_id', $qb->createNamedParameter($taskId)));
return $this->findEntities($qb);
}
return $this->findEntities($qb);
}
public function markReverted(int $id) {
$taskResult = $this->find($id);