Code Duplication    Length = 8-9 lines in 2 locations

src/Gateway.php 1 location

@@ 83-91 (lines=9) @@
80
		return $this->charge($request);
81
	}
82
83
	private function getData() : array
84
	{
85
		return array_merge(
86
			$this->data,
87
			[
88
				MerchantFields::MERCHANT_ID         => $this->merchantID,
89
				MerchantFields::MERCHANT_ACCESSCODE => $this->merchantAccessCode,
90
			]
91
		);
92
	}
93
94
	public function charge(ChargeRequest $charge) : Charge

src/models/Merchant.php 1 location

@@ 70-77 (lines=8) @@
67
        }
68
    }
69
70
    public function toArray() : array
71
    {
72
        return [
73
            MerchantFields::MERCHANT_ACCESSCODE            => $this->merchantAccessCode,
74
            MerchantFields::MERCHANT_TRANSACTION_REFERENCE => $this->merchantTransactionReference,
75
            MerchantFields::MERCHANT_ID                    => $this->merchantID
76
        ];
77
    }
78
}
79