From db6bc65274469acff3fb2ecb7d4e8cdba3ee499b Mon Sep 17 00:00:00 2001 From: Nathan Gavin Date: Wed, 15 Jan 2025 15:58:23 +1300 Subject: [PATCH] Replace array() with [] in some places --- plugins/Live/Model.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/Live/Model.php b/plugins/Live/Model.php index 2776d83cf7f..ba71ee39569 100644 --- a/plugins/Live/Model.php +++ b/plugins/Live/Model.php @@ -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)]; } @@ -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 } }