Code Duplication    Length = 12-13 lines in 4 locations

src/baokim/PaymentGateway.php 1 location

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

src/onepay/PaymentGateway.php 1 location

@@ 147-158 (lines=12) @@
144
    /**
145
     * @inheritdoc
146
     */
147
    protected function getHttpClientConfig(): array
148
    {
149
        return [
150
            'transport' => 'yii\httpclient\CurlTransport',
151
            'requestConfig' => [
152
                'options' => [
153
                    CURLOPT_SSL_VERIFYHOST => false,
154
                    CURLOPT_SSL_VERIFYPEER => false
155
                ]
156
            ]
157
        ];
158
    }
159
160
    /**
161
     * @inheritdoc

src/vnpayment/PaymentGateway.php 1 location

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

src/nganluong/PaymentGateway.php 1 location

@@ 256-267 (lines=12) @@
253
    /**
254
     * @inheritdoc
255
     */
256
    protected function getHttpClientConfig(): array
257
    {
258
        return [
259
            'transport' => 'yii\httpclient\CurlTransport',
260
            'requestConfig' => [
261
                'options' => [
262
                    CURLOPT_SSL_VERIFYPEER => false,
263
                    CURLOPT_SSL_VERIFYHOST => false
264
                ]
265
            ]
266
        ];
267
    }
268
269
    /**
270
     * @inheritdoc