Code Duplication    Length = 11-11 lines in 3 locations

src/Report.php 3 locations

@@ 85-95 (lines=11) @@
82
        }
83
    }
84
85
    public function getBooksViewsStatistics($groupBy = null, $periodFrom = null, $periodTo = null)
86
    {
87
        return $this->client->getResponse(
88
            $this->getUrl(__FUNCTION__),
89
            [
90
                'group_by' => $groupBy,
91
                'period_range_from' => $periodFrom,
92
                'period_range_to' => $periodTo,
93
            ]
94
        )['data'];
95
    }
96
97
    public function getJournalsViewsStatistics($groupBy = null, $periodFrom = null, $periodTo = null)
98
    {
@@ 97-107 (lines=11) @@
94
        )['data'];
95
    }
96
97
    public function getJournalsViewsStatistics($groupBy = null, $periodFrom = null, $periodTo = null)
98
    {
99
        return $this->client->getResponse(
100
            $this->getUrl(__FUNCTION__),
101
            [
102
                'group_by' => $groupBy,
103
                'period_range_from' => $periodFrom,
104
                'period_range_to' => $periodTo,
105
            ]
106
        )['data'];
107
    }
108
109
    public function getUsersVisitsSatistics($groupBy = null, $periodFrom = null, $periodTo = null)
110
    {
@@ 109-119 (lines=11) @@
106
        )['data'];
107
    }
108
109
    public function getUsersVisitsSatistics($groupBy = null, $periodFrom = null, $periodTo = null)
110
    {
111
        return $this->client->getResponse(
112
            $this->getUrl(__FUNCTION__),
113
            [
114
                'group_by' => $groupBy,
115
                'period_range_from' => $periodFrom,
116
                'period_range_to' => $periodTo,
117
            ]
118
        )['data'];
119
    }
120
121
    public function getAvailablePackets()
122
    {