Code Duplication    Length = 8-9 lines in 2 locations

src/Gateways/Wechat/Wechat.php 2 locations

@@ 124-131 (lines=8) @@
121
     *
122
     * @return  array|boolean     [description]
123
     */
124
    public function close($out_trade_no = '')
125
    {
126
        unset($this->config['notify_url']);
127
        unset($this->config['trade_type']);
128
        $this->config['out_trade_no'] = $out_trade_no;
129
130
        return $this->getResult($this->gateway_close);
131
    }
132
133
    /**
134
     * 对外接口 - 订单查询
@@ 143-151 (lines=9) @@
140
     * 
141
     * @return  array|boolean            [description]
142
     */
143
    public function find($out_trade_no = '')
144
    {
145
        unset($this->config['notify_url']);
146
        unset($this->config['trade_type']);
147
        
148
        $this->config['out_trade_no'] = $out_trade_no;
149
150
        return $this->getResult($this->gateway_query);
151
    }
152
153
    /**
154
     * 验证签名.