From 65ccd8712738e44a3cc038a018aa2b2eacd7e434 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sat, 28 Oct 2023 01:45:09 +0000 Subject: [PATCH] Apply fixes from StyleCI --- gatherling/api_lib.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gatherling/api_lib.php b/gatherling/api_lib.php index 9a8fcb08a..98492eb33 100644 --- a/gatherling/api_lib.php +++ b/gatherling/api_lib.php @@ -443,11 +443,14 @@ function card_catalog() } } $query->close(); + return $result; } -function cardname_from_id($id) { - $sql = "SELECT c.name as name FROM cards c WHERE c.scryfallId = ?"; +function cardname_from_id($id) +{ + $sql = 'SELECT c.name as name FROM cards c WHERE c.scryfallId = ?'; $name = Database::single_result_single_param($sql, 's', $id); + return $name; }