Code Duplication    Length = 9-9 lines in 2 locations

src/ShakeAround/Page.php 1 location

@@ 98-106 (lines=9) @@
95
     *
96
     * @return \EasyWeChat\Support\Collection
97
     */
98
    public function fetchByIds(array $pageIds)
99
    {
100
        $params = [
101
            'type' => 1,
102
            'page_ids' => $pageIds,
103
        ];
104
105
        return $this->parseJSON('json', [self::API_SEARCH, $params]);
106
    }
107
108
    /**
109
     * Pagination to fetch batch of pages.

src/ShakeAround/Relation.php 1 location

@@ 42-50 (lines=9) @@
39
     *
40
     * @return \EasyWeChat\Support\Collection
41
     */
42
    public function bindPage(array $deviceIdentifier, array $pageIds)
43
    {
44
        $params = [
45
            'device_identifier' => $deviceIdentifier,
46
            'page_ids' => $pageIds,
47
        ];
48
49
        return $this->parseJSON('json', [self::API_DEVICE_BINDPAGE, $params]);
50
    }
51
52
    /**
53
     * Get pageIds by deviceId.