Passed
Push — dev ( 6076ca...bd4ba6 )
by Jan
05:12
created
Block/Info.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.