You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/Db/CardMapper.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -308,7 +308,7 @@ public function removeLabel($card, $label) {
308
308
$qb->execute();
309
309
}
310
310
311
-
publicfunctionisOwner($userId, $cardId) {
311
+
publicfunctionisOwner($userId, $cardId): bool {
312
312
$sql = 'SELECT owner FROM `*PREFIX*deck_boards` WHERE `id` IN (SELECT board_id FROM `*PREFIX*deck_stacks` WHERE id IN (SELECT stack_id FROM `*PREFIX*deck_cards` WHERE id = ?))';
313
313
$stmt = $this->db->prepare($sql);
314
314
$stmt->bindParam(1, $cardId, \PDO::PARAM_INT);
@@ -317,7 +317,7 @@ public function isOwner($userId, $cardId) {
317
317
return ($row['owner'] === $userId);
318
318
}
319
319
320
-
publicfunctionfindBoardId($cardId) {
320
+
publicfunctionfindBoardId($cardId): ?int {
321
321
$sql = 'SELECT id FROM `*PREFIX*deck_boards` WHERE `id` IN (SELECT board_id FROM `*PREFIX*deck_stacks` WHERE id IN (SELECT stack_id FROM `*PREFIX*deck_cards` WHERE id = ?))';
0 commit comments