Code Duplication    Length = 8-8 lines in 2 locations

src/onepay/PaymentGateway.php 2 locations

@@ 109-116 (lines=8) @@
106
     * @return ResponseData|DataInterface
107
     * @inheritdoc
108
     */
109
    public function request($command, array $data, $clientId = null): DataInterface
110
    {
111
        if ($clientId === null && $this->sandbox) {
112
            $clientId = $this->international ? self::ID_CLIENT_SANDBOX_INTERNATIONAL : self::ID_CLIENT_SANDBOX_DOMESTIC;
113
        }
114
115
        return parent::request($command, $data, $clientId);
116
    }
117
118
    /**
119
     * @return bool|VerifiedData
@@ 122-129 (lines=8) @@
119
     * @return bool|VerifiedData
120
     * @inheritdoc
121
     */
122
    public function verifyRequest($command, \yii\web\Request $request = null, $clientId = null)
123
    {
124
        if ($clientId === null && $this->sandbox) {
125
            $clientId = $this->international ? self::ID_CLIENT_SANDBOX_INTERNATIONAL : self::ID_CLIENT_SANDBOX_DOMESTIC;
126
        }
127
128
        return parent::verifyRequest($command, $request, $clientId);
129
    }
130
131
    /**
132
     * @inheritdoc