Code Duplication    Length = 5-5 lines in 2 locations

src/nganluong/PaymentGateway.php 2 locations

@@ 246-250 (lines=5) @@
243
     */
244
    public function request($command, array $data, $clientId = null): DataInterface
245
    {
246
        if ($command === self::RC_AUTHENTICATE && !$this->getSeamless()) {
247
            throw new NotSupportedException('Authenticate command only support in `seamless` mode!');
248
        } else {
249
            return parent::request($command, $data, $clientId);
250
        }
251
    }
252
253
    /**
@@ 259-263 (lines=5) @@
256
     */
257
    public function verifyRequest($command, \yii\web\Request $request = null, $clientId = null)
258
    {
259
        if ($command === self::VRC_IPN) {
260
            throw new NotSupportedException('IPN is not supported in Ngan Luong gateway!');
261
        } else {
262
            return parent::verifyRequest($command, $request, $clientId);
263
        }
264
    }
265
266
    /**