Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Oct 28, 2023
1 parent 0f2bab5 commit 65ccd87
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gatherling/api_lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 65ccd87

Please sign in to comment.