Code Duplication    Length = 9-10 lines in 3 locations

src/Card/Card.php 1 location

@@ 453-462 (lines=10) @@
450
     *
451
     * @return array
452
     */
453
    public function batchGet($offset = 0, $count = 10, $status_list = 'CARD_STATUS_VERIFY_OK')
454
    {
455
        $params = [
456
            'offset'      => $offset,
457
            'count'       => $count,
458
            'status_list' => $status_list,
459
        ];
460
461
        return $this->parseJSON('json', [self::API_BATCH_GET, $params]);
462
    }
463
464
    /**
465
     * 更改卡券信息接口 and 设置跟随推荐接口

src/Material/Material.php 1 location

@@ 229-238 (lines=10) @@
226
     *
227
     * @return array
228
     */
229
    public function lists($type, $offset = 0, $count = 20)
230
    {
231
        $params = [
232
            'type' => $type,
233
            'offset' => intval($offset),
234
            'count' => min(20, $count),
235
        ];
236
237
        return $this->parseJSON('json', [self::API_LISTS, $params]);
238
    }
239
240
    /**
241
     * Get stats of materials.

src/POI/POI.php 1 location

@@ 56-64 (lines=9) @@
53
     *
54
     * @return \EasyWeChat\Support\Collection
55
     */
56
    public function lists($offset = 0, $limit = 10)
57
    {
58
        $params = [
59
                   'begin' => $offset,
60
                   'limit' => $limit,
61
                  ];
62
63
        return $this->parseJSON('json', [self::API_LIST, $params]);
64
    }
65
66
    /**
67
     * Create a POI.