Passed
Push — master ( b87e54...0829fe )
by Roeland
14:34 queued 10s
created
apps/dav/lib/Db/DirectMapper.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -34,35 +34,35 @@
 block discarded – undo
34 34
  * @template-extends QBMapper<Direct>
35 35
  */
36 36
 class DirectMapper extends QBMapper {
37
-	public function __construct(IDBConnection $db) {
38
-		parent::__construct($db, 'directlink', Direct::class);
39
-	}
37
+    public function __construct(IDBConnection $db) {
38
+        parent::__construct($db, 'directlink', Direct::class);
39
+    }
40 40
 
41
-	/**
42
-	 * @param string $token
43
-	 * @return Direct
44
-	 * @throws DoesNotExistException
45
-	 */
46
-	public function getByToken(string $token): Direct {
47
-		$qb = $this->db->getQueryBuilder();
41
+    /**
42
+     * @param string $token
43
+     * @return Direct
44
+     * @throws DoesNotExistException
45
+     */
46
+    public function getByToken(string $token): Direct {
47
+        $qb = $this->db->getQueryBuilder();
48 48
 
49
-		$qb->select('*')
50
-			->from($this->getTableName())
51
-			->where(
52
-				$qb->expr()->eq('token', $qb->createNamedParameter($token))
53
-			);
49
+        $qb->select('*')
50
+            ->from($this->getTableName())
51
+            ->where(
52
+                $qb->expr()->eq('token', $qb->createNamedParameter($token))
53
+            );
54 54
 
55
-		return parent::findEntity($qb);
56
-	}
55
+        return parent::findEntity($qb);
56
+    }
57 57
 
58
-	public function deleteExpired(int $expiration) {
59
-		$qb = $this->db->getQueryBuilder();
58
+    public function deleteExpired(int $expiration) {
59
+        $qb = $this->db->getQueryBuilder();
60 60
 
61
-		$qb->delete($this->getTableName())
62
-			->where(
63
-				$qb->expr()->lt('expiration', $qb->createNamedParameter($expiration))
64
-			);
61
+        $qb->delete($this->getTableName())
62
+            ->where(
63
+                $qb->expr()->lt('expiration', $qb->createNamedParameter($expiration))
64
+            );
65 65
 
66
-		$qb->execute();
67
-	}
66
+        $qb->execute();
67
+    }
68 68
 }
Please login to merge, or discard this patch.