Skip to content

Commit

Permalink
Replace array() with [] in some places
Browse files Browse the repository at this point in the history
  • Loading branch information
nathangavin committed Jan 15, 2025
1 parent 13e891e commit db6bc65
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugins/Live/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public function queryLogVisits($idSite, $period, $date, $segment, $offset, $limi
* for each site, determine if visitor logs or visitor profiles have
* been disabled.
*/
$siteIdsWithVisitorLogsDisabled = array();
$siteIdsWithVisitorLogsEnabled = array();
$siteIdsWithVisitorLogsDisabled = [];
$siteIdsWithVisitorLogsEnabled = [];
if (!is_array($idSite)) {
$idSite = [intval($idSite)];
}
Expand All @@ -115,8 +115,6 @@ public function queryLogVisits($idSite, $period, $date, $segment, $offset, $limi
[$sql, $bind] = $this->makeLogVisitsQueryStringNoVisitorLog($siteIdsWithVisitorLogsDisabled, $queryRange[0], $queryRange[1], $segment, $updatedOffset, $updatedLimit, $visitorId, $minTimestamp, $filterSortOrder);
$visitsDisabled = $this->executeLogVisitsQuery($sql, $bind, $segment, $dateStart, $dateEnd, $minTimestamp, $limit);
} catch (Exception $e) {

$a = 1;
// do nothing for now, in the future add some sort of message
}
}
Expand Down

0 comments on commit db6bc65

Please sign in to comment.