Code Duplication    Length = 7-7 lines in 3 locations

src/Api/Invoice.php 1 location

@@ 23-29 (lines=7) @@
20
     *
21
     * @see https://billogram.com/api/documentation#billogram_call_list
22
     */
23
    public function search(array $param = [])
24
    {
25
        $param = array_merge(['page' => 1, 'page_size' => 100], $param);
26
        $response = $this->httpGet('/billogram', $param);
27
28
        return $this->handleResponse($response, InvoiceCollection::class);
29
    }
30
31
    /**
32
     * @param string $invoiceId

src/Api/Item.php 1 location

@@ 24-30 (lines=7) @@
21
     *
22
     * @see https://billogram.com/api/documentation#items_list
23
     */
24
    public function search(array $param = [])
25
    {
26
        $param = array_merge(['page' => 1, 'page_size' => 100], $param);
27
        $response = $this->httpGet('/item', $param);
28
29
        return $this->handleResponse($response, CollectionItem::class);
30
    }
31
32
    /**
33
     * @param string $itemNo

src/Api/Report.php 1 location

@@ 23-29 (lines=7) @@
20
     *
21
     * @see https://billogram.com/api/documentation#reports_list
22
     */
23
    public function search(array $param = [])
24
    {
25
        $param = array_merge(['page' => 1, 'page_size' => 100], $param);
26
        $response = $this->httpGet('/report', $param);
27
28
        return $this->handleResponse($response, ReportCollection::class);
29
    }
30
31
    /**
32
     * @param string $fileName