Skip to content

Commit

Permalink
Added more 'int'
Browse files Browse the repository at this point in the history
  • Loading branch information
condor2 committed Feb 29, 2024
1 parent 5b5d294 commit d972601
Show file tree
Hide file tree
Showing 39 changed files with 197 additions and 197 deletions.
16 changes: 8 additions & 8 deletions upload/admin/controller/extension/fraud/fraudlabspro.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,27 +91,27 @@ public function index(): void {
}

if (isset($this->request->post['fraudlabspro_order_status_id'])) {
$data['fraudlabspro_order_status_id'] = $this->request->post['fraudlabspro_order_status_id'];
$data['fraudlabspro_order_status_id'] = (int)$this->request->post['fraudlabspro_order_status_id'];
} else {
$data['fraudlabspro_order_status_id'] = $this->config->get('fraudlabspro_order_status_id');
$data['fraudlabspro_order_status_id'] = (int)$this->config->get('fraudlabspro_order_status_id');
}

if (isset($this->request->post['fraudlabspro_review_status_id'])) {
$data['fraudlabspro_review_status_id'] = $this->request->post['fraudlabspro_review_status_id'];
$data['fraudlabspro_review_status_id'] = (int)$this->request->post['fraudlabspro_review_status_id'];
} else {
$data['fraudlabspro_review_status_id'] = $this->config->get('fraudlabspro_review_status_id');
$data['fraudlabspro_review_status_id'] = (int)$this->config->get('fraudlabspro_review_status_id');
}

if (isset($this->request->post['fraudlabspro_approve_status_id'])) {
$data['fraudlabspro_approve_status_id'] = $this->request->post['fraudlabspro_approve_status_id'];
$data['fraudlabspro_approve_status_id'] = (int)$this->request->post['fraudlabspro_approve_status_id'];
} else {
$data['fraudlabspro_approve_status_id'] = $this->config->get('fraudlabspro_approve_status_id');
$data['fraudlabspro_approve_status_id'] = (int)$this->config->get('fraudlabspro_approve_status_id');
}

if (isset($this->request->post['fraudlabspro_reject_status_id'])) {
$data['fraudlabspro_reject_status_id'] = $this->request->post['fraudlabspro_reject_status_id'];
$data['fraudlabspro_reject_status_id'] = (int)$this->request->post['fraudlabspro_reject_status_id'];
} else {
$data['fraudlabspro_reject_status_id'] = $this->config->get('fraudlabspro_reject_status_id');
$data['fraudlabspro_reject_status_id'] = (int)$this->config->get('fraudlabspro_reject_status_id');
}

if (isset($this->request->post['fraudlabspro_simulate_ip'])) {
Expand Down
4 changes: 2 additions & 2 deletions upload/admin/controller/extension/fraud/ip.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public function index(): void {
$data['cancel'] = $this->url->link('extension/extension', 'token=' . $this->session->data['token'] . '&type=fraud', true);

if (isset($this->request->post['ip_order_status_id'])) {
$data['ip_order_status_id'] = $this->request->post['ip_order_status_id'];
$data['ip_order_status_id'] = (int)$this->request->post['ip_order_status_id'];
} else {
$data['ip_order_status_id'] = $this->config->get('ip_order_status_id');
$data['ip_order_status_id'] = (int)$this->config->get('ip_order_status_id');
}

$this->load->model('localisation/order_status');
Expand Down
4 changes: 2 additions & 2 deletions upload/admin/controller/extension/fraud/maxmind.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ public function index(): void {
}

if (isset($this->request->post['maxmind_order_status_id'])) {
$data['maxmind_order_status_id'] = $this->request->post['maxmind_order_status_id'];
$data['maxmind_order_status_id'] = (int)$this->request->post['maxmind_order_status_id'];
} else {
$data['maxmind_order_status_id'] = $this->config->get('maxmind_order_status_id');
$data['maxmind_order_status_id'] = (int)$this->config->get('maxmind_order_status_id');
}

$this->load->model('localisation/order_status');
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/controller/extension/module/banner.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function index(): void {
}

if (isset($this->request->post['banner_id'])) {
$data['banner_id'] = $this->request->post['banner_id'];
$data['banner_id'] = (int)$this->request->post['banner_id'];
} elseif (!empty($module_info)) {
$data['banner_id'] = $module_info['banner_id'];
} else {
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/controller/extension/module/carousel.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function index(): void {
}

if (isset($this->request->post['banner_id'])) {
$data['banner_id'] = $this->request->post['banner_id'];
$data['banner_id'] = (int)$this->request->post['banner_id'];
} elseif (!empty($module_info)) {
$data['banner_id'] = $module_info['banner_id'];
} else {
Expand Down
4 changes: 2 additions & 2 deletions upload/admin/controller/extension/module/pp_login.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ public function index(): void {
$data['token'] = $this->session->data['token'];

if (isset($this->request->post['pp_login_client_id'])) {
$data['pp_login_client_id'] = $this->request->post['pp_login_client_id'];
$data['pp_login_client_id'] = (int)$this->request->post['pp_login_client_id'];
} else {
$data['pp_login_client_id'] = $this->config->get('pp_login_client_id');
$data['pp_login_client_id'] = (int)$this->config->get('pp_login_client_id');
}

if (isset($this->request->post['pp_login_secret'])) {
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/controller/extension/module/slideshow.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function index(): void {
}

if (isset($this->request->post['banner_id'])) {
$data['banner_id'] = $this->request->post['banner_id'];
$data['banner_id'] = (int)$this->request->post['banner_id'];
} elseif (!empty($module_info)) {
$data['banner_id'] = $module_info['banner_id'];
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ public function index(): void {
$data['cancel'] = $this->url->link('extension/extension', 'token=' . $this->session->data['token'] . '&type=payment', true);

if (isset($this->request->post['amazon_login_pay_merchant_id'])) {
$data['amazon_login_pay_merchant_id'] = $this->request->post['amazon_login_pay_merchant_id'];
$data['amazon_login_pay_merchant_id'] = (int)$this->request->post['amazon_login_pay_merchant_id'];
} elseif ($this->config->get('amazon_login_pay_merchant_id')) {
$data['amazon_login_pay_merchant_id'] = $this->config->get('amazon_login_pay_merchant_id');
$data['amazon_login_pay_merchant_id'] = (int)$this->config->get('amazon_login_pay_merchant_id');
} else {
$data['amazon_login_pay_merchant_id'] = '';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ public function index(): void {
}

if (isset($this->request->post['authorizenet_aim_order_status_id'])) {
$data['authorizenet_aim_order_status_id'] = $this->request->post['authorizenet_aim_order_status_id'];
$data['authorizenet_aim_order_status_id'] = (int)$this->request->post['authorizenet_aim_order_status_id'];
} else {
$data['authorizenet_aim_order_status_id'] = $this->config->get('authorizenet_aim_order_status_id');
$data['authorizenet_aim_order_status_id'] = (int)$this->config->get('authorizenet_aim_order_status_id');
}

$this->load->model('localisation/order_status');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ public function index(): void {
}

if (isset($this->request->post['authorizenet_sim_order_status_id'])) {
$data['authorizenet_sim_order_status_id'] = $this->request->post['authorizenet_sim_order_status_id'];
$data['authorizenet_sim_order_status_id'] = (int)$this->request->post['authorizenet_sim_order_status_id'];
} else {
$data['authorizenet_sim_order_status_id'] = $this->config->get('authorizenet_sim_order_status_id');
$data['authorizenet_sim_order_status_id'] = (int)$this->config->get('authorizenet_sim_order_status_id');
}

$this->load->model('localisation/order_status');
Expand Down
4 changes: 2 additions & 2 deletions upload/admin/controller/extension/payment/bank_transfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ public function index(): void {
}

if (isset($this->request->post['bank_transfer_order_status_id'])) {
$data['bank_transfer_order_status_id'] = $this->request->post['bank_transfer_order_status_id'];
$data['bank_transfer_order_status_id'] = (int)$this->request->post['bank_transfer_order_status_id'];
} else {
$data['bank_transfer_order_status_id'] = $this->config->get('bank_transfer_order_status_id');
$data['bank_transfer_order_status_id'] = (int)$this->config->get('bank_transfer_order_status_id');
}

$this->load->model('localisation/order_status');
Expand Down
4 changes: 2 additions & 2 deletions upload/admin/controller/extension/payment/bluepay_hosted.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ public function index(): void {
}

if (isset($this->request->post['bluepay_hosted_account_id'])) {
$data['bluepay_hosted_account_id'] = $this->request->post['bluepay_hosted_account_id'];
$data['bluepay_hosted_account_id'] = (int)$this->request->post['bluepay_hosted_account_id'];
} else {
$data['bluepay_hosted_account_id'] = $this->config->get('bluepay_hosted_account_id');
$data['bluepay_hosted_account_id'] = (int)$this->config->get('bluepay_hosted_account_id');
}

if (isset($this->request->post['bluepay_hosted_secret_key'])) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ public function index(): void {
$data['cancel'] = $this->url->link('extension/extension', 'token=' . $this->session->data['token'] . '&type=payment', true);

if (isset($this->request->post['bluepay_redirect_account_id'])) {
$data['bluepay_redirect_account_id'] = $this->request->post['bluepay_redirect_account_id'];
$data['bluepay_redirect_account_id'] = (int)$this->request->post['bluepay_redirect_account_id'];
} else {
$data['bluepay_redirect_account_id'] = $this->config->get('bluepay_redirect_account_id');
$data['bluepay_redirect_account_id'] = (int)$this->config->get('bluepay_redirect_account_id');
}

if (isset($this->request->post['bluepay_redirect_secret_key'])) {
Expand Down
4 changes: 2 additions & 2 deletions upload/admin/controller/extension/payment/cardconnect.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ public function index(): void {
$data['cancel'] = $this->url->link('extension/extension', 'token=' . $this->session->data['token'] . '&type=payment', true);

if (isset($this->request->post['cardconnect_merchant_id'])) {
$data['cardconnect_merchant_id'] = $this->request->post['cardconnect_merchant_id'];
$data['cardconnect_merchant_id'] = (int)$this->request->post['cardconnect_merchant_id'];
} else {
$data['cardconnect_merchant_id'] = $this->config->get('cardconnect_merchant_id');
$data['cardconnect_merchant_id'] = (int)$this->config->get('cardconnect_merchant_id');
}

if (isset($this->request->post['cardconnect_api_username'])) {
Expand Down
4 changes: 2 additions & 2 deletions upload/admin/controller/extension/payment/cardinity.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ public function index(): void {
$data['order_statuses'] = $this->model_localisation_order_status->getOrderStatuses();

if (isset($this->request->post['cardinity_geo_zone_id'])) {
$data['cardinity_geo_zone_id'] = $this->request->post['cardinity_geo_zone_id'];
$data['cardinity_geo_zone_id'] = (int)$this->request->post['cardinity_geo_zone_id'];
} else {
$data['cardinity_geo_zone_id'] = $this->config->get('cardinity_geo_zone_id');
$data['cardinity_geo_zone_id'] = (int)$this->config->get('cardinity_geo_zone_id');
}

$this->load->model('localisation/geo_zone');
Expand Down
8 changes: 4 additions & 4 deletions upload/admin/controller/extension/payment/cheque.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,19 @@ public function index(): void {
}

if (isset($this->request->post['cheque_order_status_id'])) {
$data['cheque_order_status_id'] = $this->request->post['cheque_order_status_id'];
$data['cheque_order_status_id'] = (int)$this->request->post['cheque_order_status_id'];
} else {
$data['cheque_order_status_id'] = $this->config->get('cheque_order_status_id');
$data['cheque_order_status_id'] = (int)$this->config->get('cheque_order_status_id');
}

$this->load->model('localisation/order_status');

$data['order_statuses'] = $this->model_localisation_order_status->getOrderStatuses();

if (isset($this->request->post['cheque_geo_zone_id'])) {
$data['cheque_geo_zone_id'] = $this->request->post['cheque_geo_zone_id'];
$data['cheque_geo_zone_id'] = (int)$this->request->post['cheque_geo_zone_id'];
} else {
$data['cheque_geo_zone_id'] = $this->config->get('cheque_geo_zone_id');
$data['cheque_geo_zone_id'] = (int)$this->config->get('cheque_geo_zone_id');
}

$this->load->model('localisation/geo_zone');
Expand Down
4 changes: 2 additions & 2 deletions upload/admin/controller/extension/payment/divido.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ public function index(): void {
}

if (isset($this->request->post['divido_order_status_id'])) {
$data['divido_order_status_id'] = $this->request->post['divido_order_status_id'];
$data['divido_order_status_id'] = (int)$this->request->post['divido_order_status_id'];
} elseif ($this->config->get('divido_order_status_id')) {
$data['divido_order_status_id'] = $this->config->get('divido_order_status_id');
$data['divido_order_status_id'] = (int)$this->config->get('divido_order_status_id');
} else {
$data['divido_order_status_id'] = 2;
}
Expand Down
20 changes: 10 additions & 10 deletions upload/admin/controller/extension/payment/eway.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,33 +141,33 @@ public function index(): void {
}

if (isset($this->request->post['eway_standard_geo_zone_id'])) {
$data['eway_standard_geo_zone_id'] = $this->request->post['eway_standard_geo_zone_id'];
$data['eway_standard_geo_zone_id'] = (int)$this->request->post['eway_standard_geo_zone_id'];
} else {
$data['eway_standard_geo_zone_id'] = $this->config->get('eway_standard_geo_zone_id');
$data['eway_standard_geo_zone_id'] = (int)$this->config->get('eway_standard_geo_zone_id');
}

if (isset($this->request->post['eway_order_status_id'])) {
$data['eway_order_status_id'] = $this->request->post['eway_order_status_id'];
$data['eway_order_status_id'] = (int)$this->request->post['eway_order_status_id'];
} else {
$data['eway_order_status_id'] = $this->config->get('eway_order_status_id');
$data['eway_order_status_id'] = (int)$this->config->get('eway_order_status_id');
}

if (isset($this->request->post['eway_order_status_refunded_id'])) {
$data['eway_order_status_refunded_id'] = $this->request->post['eway_order_status_refunded_id'];
$data['eway_order_status_refunded_id'] = (int)$this->request->post['eway_order_status_refunded_id'];
} else {
$data['eway_order_status_refunded_id'] = $this->config->get('eway_order_status_refunded_id');
$data['eway_order_status_refunded_id'] = (int)$this->config->get('eway_order_status_refunded_id');
}

if (isset($this->request->post['eway_order_status_auth_id'])) {
$data['eway_order_status_auth_id'] = $this->request->post['eway_order_status_auth_id'];
$data['eway_order_status_auth_id'] = (int)$this->request->post['eway_order_status_auth_id'];
} else {
$data['eway_order_status_auth_id'] = $this->config->get('eway_order_status_auth_id');
$data['eway_order_status_auth_id'] = (int)$this->config->get('eway_order_status_auth_id');
}

if (isset($this->request->post['eway_order_status_fraud_id'])) {
$data['eway_order_status_fraud_id'] = $this->request->post['eway_order_status_fraud_id'];
$data['eway_order_status_fraud_id'] = (int)$this->request->post['eway_order_status_fraud_id'];
} else {
$data['eway_order_status_fraud_id'] = $this->config->get('eway_order_status_fraud_id');
$data['eway_order_status_fraud_id'] = (int)$this->config->get('eway_order_status_fraud_id');
}

if (isset($this->request->post['eway_transaction_method'])) {
Expand Down
24 changes: 12 additions & 12 deletions upload/admin/controller/extension/payment/firstdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ public function index(): void {
$data['cancel'] = $this->url->link('extension/extension', 'token=' . $this->session->data['token'] . '&type=payment', true);

if (isset($this->request->post['firstdata_merchant_id'])) {
$data['firstdata_merchant_id'] = $this->request->post['firstdata_merchant_id'];
$data['firstdata_merchant_id'] = (int)$this->request->post['firstdata_merchant_id'];
} else {
$data['firstdata_merchant_id'] = $this->config->get('firstdata_merchant_id');
$data['firstdata_merchant_id'] = (int)$this->config->get('firstdata_merchant_id');
}

if (isset($this->request->post['firstdata_secret'])) {
Expand All @@ -150,9 +150,9 @@ public function index(): void {
}

if (isset($this->request->post['firstdata_geo_zone_id'])) {
$data['firstdata_geo_zone_id'] = $this->request->post['firstdata_geo_zone_id'];
$data['firstdata_geo_zone_id'] = (int)$this->request->post['firstdata_geo_zone_id'];
} else {
$data['firstdata_geo_zone_id'] = $this->config->get('firstdata_geo_zone_id');
$data['firstdata_geo_zone_id'] = (int)$this->config->get('firstdata_geo_zone_id');
}

if (isset($this->request->post['firstdata_total'])) {
Expand Down Expand Up @@ -188,27 +188,27 @@ public function index(): void {
}

if (isset($this->request->post['firstdata_order_status_success_settled_id'])) {
$data['firstdata_order_status_success_settled_id'] = $this->request->post['firstdata_order_status_success_settled_id'];
$data['firstdata_order_status_success_settled_id'] = (int)$this->request->post['firstdata_order_status_success_settled_id'];
} else {
$data['firstdata_order_status_success_settled_id'] = $this->config->get('firstdata_order_status_success_settled_id');
$data['firstdata_order_status_success_settled_id'] = (int)$this->config->get('firstdata_order_status_success_settled_id');
}

if (isset($this->request->post['firstdata_order_status_success_unsettled_id'])) {
$data['firstdata_order_status_success_unsettled_id'] = $this->request->post['firstdata_order_status_success_unsettled_id'];
$data['firstdata_order_status_success_unsettled_id'] = (int)$this->request->post['firstdata_order_status_success_unsettled_id'];
} else {
$data['firstdata_order_status_success_unsettled_id'] = $this->config->get('firstdata_order_status_success_unsettled_id');
$data['firstdata_order_status_success_unsettled_id'] = (int)$this->config->get('firstdata_order_status_success_unsettled_id');
}

if (isset($this->request->post['firstdata_order_status_decline_id'])) {
$data['firstdata_order_status_decline_id'] = $this->request->post['firstdata_order_status_decline_id'];
$data['firstdata_order_status_decline_id'] = (int)$this->request->post['firstdata_order_status_decline_id'];
} else {
$data['firstdata_order_status_decline_id'] = $this->config->get('firstdata_order_status_decline_id');
$data['firstdata_order_status_decline_id'] = (int)$this->config->get('firstdata_order_status_decline_id');
}

if (isset($this->request->post['firstdata_order_status_void_id'])) {
$data['firstdata_order_status_void_id'] = $this->request->post['firstdata_order_status_void_id'];
$data['firstdata_order_status_void_id'] = (int)$this->request->post['firstdata_order_status_void_id'];
} else {
$data['firstdata_order_status_void_id'] = $this->config->get('firstdata_order_status_void_id');
$data['firstdata_order_status_void_id'] = (int)$this->config->get('firstdata_order_status_void_id');
}

if (isset($this->request->post['firstdata_live_url'])) {
Expand Down
Loading

0 comments on commit d972601

Please sign in to comment.