Code Duplication    Length = 8-8 lines in 2 locations

src/onepay/VerifiedData.php 1 location

@@ 31-38 (lines=8) @@
28
    /**
29
     * @inheritdoc
30
     */
31
    public function rules()
32
    {
33
        return [
34
            [['vpc_SecureHash'], 'validateSecureHash', 'message' => '{attribute} is not valid!', 'on' => [
35
                PaymentGateway::VRC_IPN, PaymentGateway::VRC_PURCHASE_SUCCESS
36
            ], 'skipOnEmpty' => false]
37
        ];
38
    }
39
40
    /**
41
     * Phương thức kiểm tra chữ ký dữ liệu nhận từ OnePay.

src/vnpayment/VerifiedData.php 1 location

@@ 32-39 (lines=8) @@
29
    /**
30
     * @inheritdoc
31
     */
32
    public function rules()
33
    {
34
        return [
35
            [['vnp_SecureHash'], 'validateSecureHash', 'message' => '{attribute} is not valid!', 'on' => [
36
                PaymentGateway::VRC_PURCHASE_SUCCESS, PaymentGateway::VRC_IPN
37
            ], 'skipOnEmpty' => false]
38
        ];
39
    }
40
41
    /**
42
     * Phương thức kiểm tra chữ ký dữ liệu có hợp lệ hay không từ VnPayment gửi sang.