Code Duplication    Length = 8-8 lines in 2 locations

src/onepay/PaymentGateway.php 2 locations

@@ 100-107 (lines=8) @@
97
     * @return ResponseData|DataInterface
98
     * @inheritdoc
99
     */
100
    public function request($command, array $data, $clientId = null): DataInterface
101
    {
102
        if ($clientId === null && $this->sandbox) {
103
            $clientId = $this->international ? self::ID_CLIENT_SANDBOX_INTERNATIONAL : self::ID_CLIENT_SANDBOX_DOMESTIC;
104
        }
105
106
        return parent::request($command, $data, $clientId);
107
    }
108
109
    /**
110
     * @return bool|VerifiedData
@@ 113-120 (lines=8) @@
110
     * @return bool|VerifiedData
111
     * @inheritdoc
112
     */
113
    public function verifyRequest($command, \yii\web\Request $request = null, $clientId = null)
114
    {
115
        if ($clientId === null && $this->sandbox) {
116
            $clientId = $this->international ? self::ID_CLIENT_SANDBOX_INTERNATIONAL : self::ID_CLIENT_SANDBOX_DOMESTIC;
117
        }
118
119
        return parent::verifyRequest($command, $request, $clientId);
120
    }
121
122
    /**
123
     * @inheritdoc