Code Duplication    Length = 7-7 lines in 2 locations

src/Gateways/Alipay/Support.php 1 location

@@ 59-65 (lines=7) @@
56
     *
57
     * @param Config $config
58
     */
59
    private function __construct(Config $config)
60
    {
61
        $this->baseUri = Alipay::URL[$config->get('mode', Alipay::MODE_NORMAL)];
62
        $this->config = $config;
63
64
        $this->setHttpOptions();
65
    }
66
67
    /**
68
     * __get.

src/Gateways/Wechat/Support.php 1 location

@@ 66-72 (lines=7) @@
63
     *
64
     * @param Config $config
65
     */
66
    private function __construct(Config $config)
67
    {
68
        $this->baseUri = Wechat::URL[$config->get('mode', Wechat::MODE_NORMAL)];
69
        $this->config = $config;
70
71
        $this->setHttpOptions();
72
    }
73
74
    /**
75
     * __get.