Code Duplication    Length = 14-14 lines in 3 locations

src/Gauges/Request.php 3 locations

@@ 144-157 (lines=14) @@
141
     *
142
     * @return GuzzleHttp\Psr7\Response
143
     */
144
    public function update_me($first_name = null, $last_name = null)
145
    {
146
        $params = array();
147
148
        if (isset($first_name)) {
149
            $params['first_name'] = (string) $first_name;
150
        }
151
152
        if (isset($last_name)) {
153
            $params['last_name'] = (string) $last_name;
154
        }
155
156
        return $this->makeApiCall('PUT', 'me', $params);
157
    }
158
159
    /**
160
     * API Client List
@@ 393-406 (lines=14) @@
390
     *
391
     * @return GuzzleHttp\Psr7\Response
392
     */
393
    public function top_referrers($id, $date = null, $page = null)
394
    {
395
        $params = array();
396
397
        if (isset($date)) {
398
            $params['date'] = (string) $date;
399
        }
400
401
        if (isset($page)) {
402
            $params['page'] = (int) $page;
403
        }
404
405
        return $this->makeApiCall('GET', 'gauges/' . $id . '/referrers', $params);
406
    }
407
408
    /**
409
     * Traffic
@@ 482-495 (lines=14) @@
479
     *
480
     * @return GuzzleHttp\Psr7\Response
481
     */
482
    public function search_terms($id, $date = null, $page = null)
483
    {
484
        $params = array();
485
486
        if (isset($date)) {
487
            $params['date'] = (string) $date;
488
        }
489
490
        if (isset($page)) {
491
            $params['page'] = (int) $page;
492
        }
493
494
        return $this->makeApiCall('GET', 'gauges/' . $id . '/terms', $params);
495
    }
496
497
    /**
498
     * Search Engines