Skip to content

Commit

Permalink
Remove trailing comma para maior suporte de versões do PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslealdev committed Nov 26, 2020
1 parent 823a70c commit 6d76945
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions upload/admin/controller/extension/payment/pagseguro.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ private function details($order_id, $order_info)
$creditor_fees_data = [
'installmentFeeAmount' => $this->currency->format($creditor_fees->getInstallmentFeeAmount(), 'BRL'),
'intermediationRateAmount' => $this->currency->format($creditor_fees->getIntermediationRateAmount(), 'BRL'),
'intermediationFeeAmount' => $this->currency->format($creditor_fees->getIntermediationFeeAmount(), 'BRL'),
'intermediationFeeAmount' => $this->currency->format($creditor_fees->getIntermediationFeeAmount(), 'BRL')
];
}

Expand Down Expand Up @@ -484,7 +484,7 @@ private function validate()
if (!filter_var($this->request->post['installment_total'], FILTER_VALIDATE_INT, [
'options' => [
'min_range' => 1,
'max_range' => 18,
'max_range' => 18
]
])) {
$this->error['installment_total'] = $this->language->get('error_installment_total');
Expand Down Expand Up @@ -559,7 +559,7 @@ private function getAllFields()
'methods_credit_minimum_amount' => ['required' => false],
'methods_debit_status' => ['required' => false],
'methods_debit_minimum_amount' => ['required' => false],
'layout' => ['required' => true],
'layout' => ['required' => true]
];
}

Expand Down
2 changes: 1 addition & 1 deletion upload/admin/model/extension/payment/pagseguro.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getTransactionInfo($order_id, $columns = null, bool $includeRaw
'discount_amount',
'fee_amount',
'net_amount',
'extra_amount',
'extra_amount'
];

if ($columns === null && $includeRaw === true) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function transaction()
$order_info['shipping_city'],
$order_info['shipping_zone_code'],
preg_replace('/\D/', '', $order_info['shipping_postcode']),
$order_info['shipping_company'],
$order_info['shipping_company']
);

$shipping_cost = $this->model_extension_payment_pagseguro->getShippingCost($order_totals);
Expand Down
2 changes: 1 addition & 1 deletion upload/catalog/model/extension/payment/pagseguro.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function getTransactionInfo($order_id_or_code, $columns = null, bool $inc
'discount_amount',
'fee_amount',
'net_amount',
'extra_amount',
'extra_amount'
];

if ($columns === null && $includeRaw === true) {
Expand Down

0 comments on commit 6d76945

Please sign in to comment.