Skip to content

Commit

Permalink
Simplyfy SQL $parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
craigfrancis committed Sep 11, 2021
1 parent fed127d commit 0eb62e3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions example/example-vat.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
WHERE
fv.id = ?';

$parameters = array();
$parameters[] = array('s', $hmrc_submission);
$parameters[] = array('i', $record_id);
$parameters = [];
$parameters[] = $hmrc_submission;
$parameters[] = intval($record_id);

$db->query($sql, $parameters);

Expand Down Expand Up @@ -106,10 +106,10 @@
WHERE
fv.id = ?';

$parameters = array();
$parameters[] = array('s', $hmrc_collection_date);
$parameters[] = array('s', $hmrc_response);
$parameters[] = array('i', $record_id);
$parameters = [];
$parameters[] = $hmrc_collection_date;
$parameters[] = $hmrc_response;
$parameters[] = intval($record_id);

$db->query($sql, $parameters);

Expand Down

0 comments on commit 0eb62e3

Please sign in to comment.