Passed
Push — dev ( 6076ca...bd4ba6 )
by Jan
05:12
created
Model/PaymentManagement.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             \Getloy\PaymentProviders::PAYWAY_KH,
155 155
             $order,
156 156
             $payee,
157
-            $this->url->getUrl('rest/default/V1/getloy/payment/callback/' . $orderId)
157
+            $this->url->getUrl('rest/default/V1/getloy/payment/callback/'.$orderId)
158 158
         );
159 159
     }
160 160
 
@@ -217,9 +217,9 @@  discard block
 block discarded – undo
217 217
         $order->addStatusHistoryComment(__('PayWay payment session started.'))
218 218
             ->save();
219 219
 
220
-        return [[
220
+        return [ [
221 221
             'payload' => $this->generatePayload($quote, $orderId),
222
-        ]];
222
+        ] ];
223 223
     }
224 224
 
225 225
     /**
Please login to merge, or discard this patch.
Gateway/Config/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public function getAcceptedCurrencies()
56 56
     {
57
-        return ['USD'];
57
+        return [ 'USD' ];
58 58
     }
59 59
 
60 60
     /**
Please login to merge, or discard this patch.
Gateway/Validator/CurrencyValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,13 +50,13 @@
 block discarded – undo
50 50
     public function validate(array $validationSubject)
51 51
     {
52 52
         $isValid = true;
53
-        $storeId = $validationSubject['storeId'];
54
-        $currency = $validationSubject['currency'];
53
+        $storeId = $validationSubject[ 'storeId' ];
54
+        $currency = $validationSubject[ 'currency' ];
55 55
 
56 56
         if ($currency !== $this->config->getValue('currency', $storeId)) {
57 57
             $isValid = false;
58 58
         }
59
-        if (!\in_array($currency, ['USD'])) {
59
+        if (!\in_array($currency, [ 'USD' ])) {
60 60
             $isValid = false;
61 61
         }
62 62
 
Please login to merge, or discard this patch.
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.