Code Duplication    Length = 10-10 lines in 2 locations

src/ShakeAround/Stats.php 2 locations

@@ 45-54 (lines=10) @@
42
     *
43
     * @return \EasyWeChat\Support\Collection
44
     */
45
    public function deviceSummary(array $deviceIdentifier, $beginDate, $endDate)
46
    {
47
        $params = [
48
            'device_identifier' => $deviceIdentifier,
49
            'begin_date' => $beginDate,
50
            'end_date' => $endDate,
51
        ];
52
53
        return $this->parseJSON('json', [self::API_DEVICE, $params]);
54
    }
55
56
    /**
57
     * Fetch all devices statistics data by date.
@@ 83-92 (lines=10) @@
80
     *
81
     * @return \EasyWeChat\Support\Collection
82
     */
83
    public function pageSummary($pageId, $beginDate, $endDate)
84
    {
85
        $params = [
86
            'page_id' => $pageId,
87
            'begin_date' => $beginDate,
88
            'end_date' => $endDate,
89
        ];
90
91
        return $this->parseJSON('json', [self::API_PAGE, $params]);
92
    }
93
94
    /**
95
     * Fetch all pages statistics data by date.