Skip to content

Commit 4e105d3

Browse files
committed
remove unused method parameter
1 parent 97ca14c commit 4e105d3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

plugins/Live/Model.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ public function queryLogVisits($idSite, $period, $date, $segment, $offset, $limi
5353
}
5454

5555
// If no other filter, only look at the last 24 hours of stats
56-
if (empty($visitorId)
56+
if (
57+
empty($visitorId)
5758
&& empty($limit)
5859
&& empty($offset)
5960
&& empty($period)
@@ -85,7 +86,7 @@ public function queryLogVisits($idSite, $period, $date, $segment, $offset, $limi
8586
if (!empty($remainingOffset)) {
8687
if (empty($visits)) {
8788
// No visits returned - need to count total in range to adjust offset
88-
$totalInRange = $this->countLogVisitsInRange($idSite, $queryRange[0], $queryRange[1], $segment, $visitorId, $minTimestamp, $filterSortOrder);
89+
$totalInRange = $this->countLogVisitsInRange($idSite, $queryRange[0], $queryRange[1], $segment, $visitorId, $minTimestamp);
8990
$remainingOffset = max(0, $remainingOffset - $totalInRange);
9091
continue;
9192
} else {
@@ -129,11 +130,10 @@ public function queryLogVisits($idSite, $period, $date, $segment, $offset, $limi
129130
* @param string $segment
130131
* @param string $visitorId
131132
* @param int $minTimestamp
132-
* @param string $filterSortOrder
133133
* @return int
134134
* @throws Exception
135135
*/
136-
private function countLogVisitsInRange($idSite, $dateStart, $dateEnd, $segment, $visitorId, $minTimestamp, $filterSortOrder)
136+
private function countLogVisitsInRange($idSite, $dateStart, $dateEnd, $segment, $visitorId, $minTimestamp)
137137
{
138138
[$whereClause, $bindIdSites] = $this->getIdSitesWhereClause($idSite);
139139
[$whereBind, $where] = $this->getWhereClauseAndBind($whereClause, $bindIdSites, $dateStart, $dateEnd, $visitorId, $minTimestamp);

0 commit comments

Comments
 (0)