Code Duplication    Length = 12-12 lines in 2 locations

src/Resource/OrdersList.php 1 location

@@ 66-77 (lines=12) @@
63
        return $this->getByPath($this->generateListPath($pagination, $filters, ['q' => $qParam]));
64
    }
65
66
    protected function populate(stdClass $response)
67
    {
68
        $ordersList = clone $this;
69
        $ordersList->data = new stdClass();
70
71
        $ordersList->data->orders = $response->orders;
72
73
        $ordersList->data->summary = $response->summary;
74
        $ordersList->_links = $response->_links;
75
76
        return $ordersList;
77
    }
78
}
79

src/Resource/TransfersList.php 1 location

@@ 51-62 (lines=12) @@
48
        return $this->getByPath($this->generateListPath($pagination, $filters, ['q' => $qParam]));
49
    }
50
51
    protected function populate(stdClass $response)
52
    {
53
        $transfersList = clone $this;
54
        $transfersList->data = new stdClass();
55
56
        $transfersList->data->transfers = $response->transfers;
57
58
        $transfersList->data->summary = $response->summary;
59
        $transfersList->_links = $response->_links;
60
61
        return $transfersList;
62
    }
63
}
64