@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | protected function getPaymentStatus( |
| 36 | 36 | \Magento\Sales\Model\Order\Payment $payment |
| 37 | 37 | ) { |
| 38 | - $info = []; |
|
| 38 | + $info = [ ]; |
|
| 39 | 39 | |
| 40 | 40 | if ((float) $payment->getAmountRefunded() > 0) { |
| 41 | 41 | return __('Refunded'); |
@@ -59,12 +59,12 @@ discard block |
||
| 59 | 59 | $transport = parent::_prepareSpecificInformation($transport); |
| 60 | 60 | $payment = $this->getInfo(); |
| 61 | 61 | $info = [ |
| 62 | - (string)__('Status') => $this->getPaymentStatus($payment), |
|
| 62 | + (string) __('Status') => $this->getPaymentStatus($payment), |
|
| 63 | 63 | ]; |
| 64 | 64 | |
| 65 | 65 | $additionalInfo = $payment->getAdditionalInformation(); |
| 66 | 66 | if (array_key_exists('getloy_transaction_id', $additionalInfo)) { |
| 67 | - $info[(string)__('Transaction ID')] = $additionalInfo[ |
|
| 67 | + $info[ (string) __('Transaction ID') ] = $additionalInfo[ |
|
| 68 | 68 | 'getloy_transaction_id' |
| 69 | 69 | ]; |
| 70 | 70 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $additionalInfo = $this->getInfo()->getAdditionalInformation(); |
| 83 | 83 | |
| 84 | 84 | if (array_key_exists('getloy_payment_method', $additionalInfo)) { |
| 85 | - return __('Paid with %1', $additionalInfo['getloy_payment_method']); |
|
| 85 | + return __('Paid with %1', $additionalInfo[ 'getloy_payment_method' ]); |
|
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | 88 | } |