Code Duplication    Length = 7-7 lines in 4 locations

lib/Ajde/Social/Provider/Google/Google/Service/Plus.php 4 locations

@@ 423-429 (lines=7) @@
420
     *
421
     * @return Google_Service_Plus_ActivityFeed
422
     */
423
    public function search($query, $optParams = [])
424
    {
425
        $params = ['query' => $query];
426
        $params = array_merge($params, $optParams);
427
428
        return $this->call('search', [$params], 'Google_Service_Plus_ActivityFeed');
429
    }
430
}
431
432
/**
@@ 619-625 (lines=7) @@
616
     *
617
     * @return Google_Service_Plus_PeopleFeed
618
     */
619
    public function listPeople($userId, $collection, $optParams = [])
620
    {
621
        $params = ['userId' => $userId, 'collection' => $collection];
622
        $params = array_merge($params, $optParams);
623
624
        return $this->call('list', [$params], 'Google_Service_Plus_PeopleFeed');
625
    }
626
627
    /**
628
     * List all of the people in the specified collection for a particular activity.
@@ 646-652 (lines=7) @@
643
     *
644
     * @return Google_Service_Plus_PeopleFeed
645
     */
646
    public function listByActivity($activityId, $collection, $optParams = [])
647
    {
648
        $params = ['activityId' => $activityId, 'collection' => $collection];
649
        $params = array_merge($params, $optParams);
650
651
        return $this->call('listByActivity', [$params], 'Google_Service_Plus_PeopleFeed');
652
    }
653
654
    /**
655
     * Search all public profiles. (people.search).
@@ 673-679 (lines=7) @@
670
     *
671
     * @return Google_Service_Plus_PeopleFeed
672
     */
673
    public function search($query, $optParams = [])
674
    {
675
        $params = ['query' => $query];
676
        $params = array_merge($params, $optParams);
677
678
        return $this->call('search', [$params], 'Google_Service_Plus_PeopleFeed');
679
    }
680
}
681
682
class Google_Service_Plus_Acl extends Google_Collection