Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Baptiste Noblot <noblot.jb@gmail.com>2020-05-12 23:46:00 +0300
committerGitHub <noreply@github.com>2020-05-12 23:46:00 +0300
commitc870770157a3e9c893308967dc274c8feac5d4be (patch)
tree43f228cba7ae223e859a1165c081a97d380650dd /core/Archive
parent8012467e95430c08342bbfa8510d1f60b9ea317f (diff)
triple equals (#15762)
Diffstat (limited to 'core/Archive')
-rw-r--r--core/Archive/ArchiveInvalidator.php4
-rw-r--r--core/Archive/ArchiveQueryFactory.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/core/Archive/ArchiveInvalidator.php b/core/Archive/ArchiveInvalidator.php
index 97a59194e4..2f2e8cb6f4 100644
--- a/core/Archive/ArchiveInvalidator.php
+++ b/core/Archive/ArchiveInvalidator.php
@@ -247,8 +247,8 @@ class ArchiveInvalidator
$hasMoreThanJustToday[$idSite] = true;
$tz = Site::getTimezoneFor($idSite);
- if (($period == 'day' || $period === false)
- && count($dates) == 1
+ if (($period === 'day' || $period === false)
+ && count($dates) === 1
&& $dates[0]->toString() == Date::factoryInTimezone('today', $tz)
) {
$hasMoreThanJustToday[$idSite] = false;
diff --git a/core/Archive/ArchiveQueryFactory.php b/core/Archive/ArchiveQueryFactory.php
index 4172d40cee..de69f39066 100644
--- a/core/Archive/ArchiveQueryFactory.php
+++ b/core/Archive/ArchiveQueryFactory.php
@@ -77,11 +77,11 @@ class ArchiveQueryFactory
$websiteIds = Site::getIdSitesFromIdSitesString($idSites, $_restrictSitesToLogin);
$timezone = false;
- if (count($websiteIds) == 1) {
+ if (count($websiteIds) === 1) {
$timezone = Site::getTimezoneFor($websiteIds[0]);
}
- $idSiteIsAll = $idSites == Archive::REQUEST_ALL_WEBSITES_FLAG;
+ $idSiteIsAll = $idSites === Archive::REQUEST_ALL_WEBSITES_FLAG;
return [$websiteIds, $timezone, $idSiteIsAll];
}