Code Duplication    Length = 5-5 lines in 2 locations

src/nganluong/PaymentGateway.php 2 locations

@@ 230-234 (lines=5) @@
227
     */
228
    public function request($command, array $data, $clientId = null): DataInterface
229
    {
230
        if ($command === self::RC_AUTHENTICATE && !$this->getSeamless()) {
231
            throw new NotSupportedException('Authenticate command only support in `seamless` mode!');
232
        } else {
233
            return parent::request($command, $data, $clientId);
234
        }
235
    }
236
237
    /**
@@ 243-247 (lines=5) @@
240
     */
241
    public function verifyRequest($command, \yii\web\Request $request = null, $clientId = null)
242
    {
243
        if ($command === self::VRC_IPN) {
244
            throw new NotSupportedException('IPN is not supported in Ngan Luong gateway!');
245
        } else {
246
            return parent::verifyRequest($command, $request, $clientId);
247
        }
248
    }
249
250
    /**