Code Duplication    Length = 9-10 lines in 2 locations

src/Gauges/Request.php 2 locations

@@ 406-414 (lines=9) @@
403
     *
404
     * @return Response
405
     */
406
    public function topReferrers(string $id, $date = null, int $page = null) : Response
407
    {
408
        $params = $this->formatDateParameter($date);
409
        if (isset($page)) {
410
            $params['page'] = (int) $page;
411
        }
412
413
        return $this->makeApiCall('GET', 'gauges/' . $id . '/referrers', $params);
414
    }
415
416
    /**
417
     * Traffic
@@ 472-481 (lines=10) @@
469
     *
470
     * @return Response
471
     */
472
    public function searchTerms(string $id, $date = null, int $page = null) : Response
473
    {
474
        $params = $this->formatDateParameter($date);
475
476
        if (isset($page)) {
477
            $params['page'] = $page;
478
        }
479
480
        return $this->makeApiCall('GET', 'gauges/' . $id . '/terms', $params);
481
    }
482
483
    /**
484
     * Search Engines