Code Duplication    Length = 3-3 lines in 2 locations

src/baokim/VerifiedData.php 1 location

@@ 79-81 (lines=3) @@
76
        ksort($data);
77
        $dataSign = implode('', $data);
78
79
        if (!$expectSignature || !$client->validateSignature($dataSign, $expectSignature, PaymentClient::SIGNATURE_HMAC)) {
80
            $validator->addError($this, $attribute, $validator->message);
81
        }
82
    }
83
84
}

src/vnpayment/VerifiedData.php 1 location

@@ 72-74 (lines=3) @@
69
        $client = $this->getClient();
70
        $dataSign = urldecode(http_build_query($data));
71
72
        if (!$expectSignature || !$client->validateSignature($dataSign, $expectSignature, $hashType)) {
73
            $validator->addError($this, $attribute, $validator->message);
74
        }
75
    }
76
77
}