Code Duplication    Length = 10-10 lines in 7 locations

src/Gauges/Request.php 7 locations

@@ 213-222 (lines=10) @@
210
     *
211
     * @return GuzzleHttp\Psr7\Response
212
     */
213
    public function list_gauges($page = null)
214
    {
215
        $params = array();
216
217
        if (isset($page)) {
218
            $params['page'] = (int) $page;
219
        }
220
221
        return $this->makeApiCall('GET', 'gauges', $params);
222
    }
223
224
    /**
225
     * Create a New Gauge
@@ 418-427 (lines=10) @@
415
     *
416
     * @return GuzzleHttp\Psr7\Response
417
     */
418
    public function traffic($id, $date = null)
419
    {
420
        $params = array();
421
422
        if (isset($date)) {
423
            $params['date'] = (string) $date;
424
        }
425
426
        return $this->makeApiCall('GET', 'gauges/' . $id . '/traffic', $params);
427
    }
428
429
    /**
430
     * Browser Resolutions
@@ 439-448 (lines=10) @@
436
     *
437
     * @return GuzzleHttp\Psr7\Response
438
     */
439
    public function browser_resolutions($id, $date = null)
440
    {
441
        $params = array();
442
443
        if (isset($date)) {
444
            $params['date'] = (string) $date;
445
        }
446
447
        return $this->makeApiCall('GET', 'gauges/' . $id . '/resolutions', $params);
448
    }
449
450
    /**
451
     * Technology
@@ 460-469 (lines=10) @@
457
     *
458
     * @return GuzzleHttp\Psr7\Response
459
     */
460
    public function technology($id, $date = null)
461
    {
462
        $params = array();
463
464
        if (isset($date)) {
465
            $params['date'] = (string) $date;
466
        }
467
468
        return $this->makeApiCall('GET', 'gauges/' . $id . '/technology', $params);
469
    }
470
471
    /**
472
     * Search Terms
@@ 507-516 (lines=10) @@
504
     *
505
     * @return GuzzleHttp\Psr7\Response
506
     */
507
    public function search_engines($id, $date = null)
508
    {
509
        $params = array();
510
511
        if (isset($date)) {
512
            $params['date'] = (string) $date;
513
        }
514
515
        return $this->makeApiCall('GET', 'gauges/' . $id . '/engines', $params);
516
    }
517
518
    /**
519
     * Locations
@@ 528-537 (lines=10) @@
525
     *
526
     * @return GuzzleHttp\Psr7\Response
527
     */
528
    public function locations($id, $date = null)
529
    {
530
        $params = array();
531
532
        if (isset($date)) {
533
            $params['date'] = (string) $date;
534
        }
535
536
        return $this->makeApiCall('GET', 'gauges/' . $id . '/locations', $params);
537
    }
538
539
    /**
540
     * Browser stats
@@ 550-559 (lines=10) @@
547
     *
548
     * @return GuzzleHttp\Psr7\Response
549
     */
550
    public function browser_stats($id, $date = null)
551
    {
552
        $params = array();
553
554
        if (isset($date)) {
555
            $params['date'] = (string) $date;
556
        }
557
558
        return $this->makeApiCall('GET', 'gauges/' . $id . '/browserstats', $params);
559
    }
560
561
    /**
562
     * Make the actual gauges API call.