Code Duplication    Length = 12-13 lines in 4 locations

src/vnpayment/PaymentGateway.php 1 location

@@ 190-201 (lines=12) @@
187
    /**
188
     * @inheritdoc
189
     */
190
    protected function getHttpClientConfig(): array
191
    {
192
        return [
193
            'transport' => 'yii\httpclient\CurlTransport',
194
            'requestConfig' => [
195
                'options' => [
196
                    CURLOPT_SSL_VERIFYHOST => false,
197
                    CURLOPT_SSL_VERIFYPEER => false
198
                ]
199
            ]
200
        ];
201
    }
202
}
203

src/baokim/PaymentGateway.php 1 location

@@ 175-187 (lines=13) @@
172
    /**
173
     * @inheritdoc
174
     */
175
    protected function getHttpClientConfig(): array
176
    {
177
        return [
178
            'transport' => 'yii\httpclient\CurlTransport',
179
            'requestConfig' => [
180
                'format' => 'json',
181
                'options' => [
182
                    CURLOPT_SSL_VERIFYHOST => false,
183
                    CURLOPT_SSL_VERIFYPEER => false
184
                ]
185
            ]
186
        ];
187
    }
188
189
    /**
190
     * Phương thức hổ trợ lấy thông tin merchant thông qua email business.

src/nganluong/PaymentGateway.php 1 location

@@ 243-254 (lines=12) @@
240
    /**
241
     * @inheritdoc
242
     */
243
    protected function getHttpClientConfig(): array
244
    {
245
        return [
246
            'transport' => 'yii\httpclient\CurlTransport',
247
            'requestConfig' => [
248
                'options' => [
249
                    CURLOPT_SSL_VERIFYPEER => false,
250
                    CURLOPT_SSL_VERIFYHOST => false
251
                ]
252
            ]
253
        ];
254
    }
255
256
    /**
257
     * @inheritdoc

src/onepay/PaymentGateway.php 1 location

@@ 123-135 (lines=13) @@
120
    /**
121
     * @inheritdoc
122
     */
123
    protected function getHttpClientConfig(): array
124
    {
125
        return [
126
            'class' => HttpClient::class,
127
            'transport' => 'yii\httpclient\CurlTransport',
128
            'requestConfig' => [
129
                'options' => [
130
                    CURLOPT_SSL_VERIFYHOST => false,
131
                    CURLOPT_SSL_VERIFYPEER => false
132
                ]
133
            ]
134
        ];
135
    }
136
137
    /**
138
     * @return ResponseData|DataInterface