Code Duplication    Length = 8-8 lines in 2 locations

src/onepay/PaymentGateway.php 2 locations

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