Code Duplication    Length = 12-12 lines in 2 locations

catalog/includes/apps/braintree/lib/Braintree/CreditCardGateway.php 1 location

@@ 91-102 (lines=12) @@
88
     * returns a ResourceCollection of expired credit cards
89
     * @return ResourceCollection
90
     */
91
    public function expired()
92
    {
93
        $path = $this->_config->merchantPath() . '/payment_methods/all/expired_ids';
94
        $response = $this->_http->post($path);
95
        $pager = [
96
            'object' => $this,
97
            'method' => 'fetchExpired',
98
            'methodArgs' => []
99
        ];
100
101
        return new ResourceCollection($response, $pager);
102
    }
103
104
    public function fetchExpired($ids)
105
    {

catalog/includes/apps/braintree/lib/Braintree/CustomerGateway.php 1 location

@@ 32-43 (lines=12) @@
29
        $this->_http = new Http($gateway->config);
30
    }
31
32
    public function all()
33
    {
34
        $path = $this->_config->merchantPath() . '/customers/advanced_search_ids';
35
        $response = $this->_http->post($path);
36
        $pager = [
37
            'object' => $this,
38
            'method' => 'fetch',
39
            'methodArgs' => [[]]
40
            ];
41
42
        return new ResourceCollection($response, $pager);
43
    }
44
45
    public function fetch($query, $ids)
46
    {