Code Duplication    Length = 9-9 lines in 2 locations

src/Gateways/Alipay/Support.php 1 location

@@ 318-326 (lines=9) @@
315
     *
316
     * @return self
317
     */
318
    protected function setHttpOptions(): self
319
    {
320
        if ($this->config->has('http') && is_array($this->config->get('http'))) {
321
            $this->config->forget('http.base_uri');
322
            $this->httpOptions = $this->config->get('http');
323
        }
324
325
        return $this;
326
    }
327
}
328

src/Gateways/Wechat/Support.php 1 location

@@ 406-414 (lines=9) @@
403
     *
404
     * @return self
405
     */
406
    private function setHttpOptions(): self
407
    {
408
        if ($this->config->has('http') && is_array($this->config->get('http'))) {
409
            $this->config->forget('http.base_uri');
410
            $this->httpOptions = $this->config->get('http');
411
        }
412
413
        return $this;
414
    }
415
}
416