Code Duplication    Length = 13-14 lines in 2 locations

src/Api/Betting.php 2 locations

@@ 18-31 (lines=14) @@
15
        $this->httpClient = $httpClient ?: new HttpClient;
16
    }
17
18
    public function listMarketcatalogue($filter = [ ], $marketProjection = [ ], $sort = null, $maxResults = 100, $locale = null)
19
    {
20
        return $this->httpClient
21
            ->setMethod('post')
22
            ->setEndPoint(self::ENDPOINT.'listMarketCatalogue/')
23
            ->authHeaders()
24
            ->addHeader([ 'Content-Type' => 'application/json' ])
25
            ->setFilter($filter)
26
            ->setProjection('marketProjection', $marketProjection)
27
            ->setSort($sort)
28
            ->setMaxResults($maxResults)
29
            ->setLocale($locale)
30
            ->send();
31
    }
32
33
    public function listMarketBook($marketIds = [ ], $priceProjection = null, $orderProjection = null, $matchProjection = null, $currencyCode = null, $locale = null)
34
    {
@@ 49-61 (lines=13) @@
46
            ->send();
47
    }
48
49
    public function listMarketProfitAndLoss($marketIds = [ ], $includeSettledBets = false, $includeBspBets = false, $netOfCommission = false)
50
    {
51
        return $this->httpClient
52
            ->setMethod('post')
53
            ->setEndPoint(self::ENDPOINT.'listMarketProfitAndLoss/')
54
            ->authHeaders()
55
            ->addHeader([ 'Content-Type' => 'application/json' ])
56
            ->setMarketIds($marketIds)
57
            ->setFlag('includeSettledBets', $includeSettledBets)
58
            ->setFlag('includeBspBets', $includeBspBets)
59
            ->setFlag('netOfCommission', $netOfCommission)
60
            ->send();
61
    }
62
63
    public function listTimeRanges($marketFilter, $timeGranularity)
64
    {