Skip to content

Commit

Permalink
Merge pull request opencart#13665 from AJenbo/3phpstan1
Browse files Browse the repository at this point in the history
[3.0.x.x] Make identically identified functions have the same signature
  • Loading branch information
danielkerr authored Feb 11, 2024
2 parents c458419 + 028e8a5 commit d938af8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion upload/admin/model/extension/payment/opayo.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public function editRecurringStatus($order_recurring_id, $status) {
$this->db->query("UPDATE `" . DB_PREFIX . "order_recurring` SET `status` = '" . (int)$status . "' WHERE `order_recurring_id` = '" . (int)$order_recurring_id . "'");
}

public function sendCurl($url, $payment_data) {
public function sendCurl($url, $payment_data, $i = null) {
$curl = curl_init($url);

curl_setopt($curl, CURLOPT_PORT, 443);
Expand Down
4 changes: 2 additions & 2 deletions upload/catalog/model/extension/payment/worldpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function getOrder($order_id) {

if ($qry->num_rows) {
$order = $qry->row;
$order['transactions'] = $this->getTransactions($order['worldpay_order_id']);
$order['transactions'] = $this->getTransactions($order['worldpay_order_id'], null);

return $order;
} else {
Expand All @@ -90,7 +90,7 @@ public function addTransaction($worldpay_order_id, $type, $order_info) {
$this->db->query("INSERT INTO `" . DB_PREFIX . "worldpay_order_transaction` SET `worldpay_order_id` = '" . (int)$worldpay_order_id . "', `date_added` = now(), `type` = '" . $this->db->escape($type) . "', `amount` = '" . $this->currency->format($order_info['total'], $order_info['currency_code'], false, false) . "'");
}

public function getTransactions($worldpay_order_id) {
public function getTransactions($worldpay_order_id, $currency_code) {
$qry = $this->db->query("SELECT * FROM `" . DB_PREFIX . "worldpay_order_transaction` WHERE `worldpay_order_id` = '" . (int)$worldpay_order_id . "'");

if ($qry->num_rows) {
Expand Down

0 comments on commit d938af8

Please sign in to comment.