Skip to content

Commit d3de8d6

Browse files
Typofixes (matomo-org#19805)
* Fixing typo in array property * Fixing "nonexistant" throughout codebase * Fixing misspelling of Password * Typofixes in comments * Update core/Plugin/Dimension/VisitDimension.php Co-authored-by: Justin Velluppillai <[email protected]> * Reverting change of idDimenson Co-authored-by: Justin Velluppillai <[email protected]>
1 parent 8a3c0e8 commit d3de8d6

22 files changed

Lines changed: 36 additions & 36 deletions

File tree

config/global.ini.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@
10431043
; For example "e_c==Media" means that all tracking requests will be excluded where the event category is Media.
10441044
; Multiple exclusions can be configured separated by a comma. The request will be excluded if any expressions matches (not all of them). For example: "e_c==Media,action_name=@privacy".
10451045
; This would also exclude any request from being tracked where the page title contains privacy.
1046-
; All comparisons are performed case insensitve. The value to match on the right side should be URL encoded.
1046+
; All comparisons are performed case insensitive. The value to match on the right side should be URL encoded.
10471047
; For example: "action_name=^foo%2Cbar" would exclude page titles that start with "foo,bar".
10481048
; For a list of tracking parameters you can use on the left side view https://developer.matomo.org/api-reference/tracking-api
10491049
exclude_requests = ""

core/Access/CapabilitiesProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function getAllCapabilities(): array
3434
*
3535
* public function addCapabilities(&$capabilities)
3636
* {
37-
* $capabilities[] = new MyNewCapabilitiy();
37+
* $capabilities[] = new MyNewCapability();
3838
* }
3939
*
4040
* @param Capability[] $reports An array of reports

core/Archive/ArchiveInvalidator.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,15 @@ private function deleteOptionLike($id)
254254
* @param $period string
255255
* @param $segment Segment
256256
* @param bool $cascadeDown
257-
* @param bool $forceInvalidateNonexistantRanges set true to force inserting rows for ranges in archive_invalidations
257+
* @param bool $forceInvalidateNonexistentRanges set true to force inserting rows for ranges in archive_invalidations
258258
* @param string $name null to make sure every plugin is archived when this invalidation is processed by core:archive,
259259
* or a plugin name to only archive the specific plugin.
260260
* @param bool $ignorePurgeLogDataDate
261261
* @return InvalidationResult
262262
* @throws \Exception
263263
*/
264264
public function markArchivesAsInvalidated(array $idSites, array $dates, $period, Segment $segment = null, $cascadeDown = false,
265-
$forceInvalidateNonexistantRanges = false, $name = null, $ignorePurgeLogDataDate = false)
265+
$forceInvalidateNonexistentRanges = false, $name = null, $ignorePurgeLogDataDate = false)
266266
{
267267
$plugin = null;
268268
if ($name && strpos($name, '.') !== false) {
@@ -320,7 +320,7 @@ public function markArchivesAsInvalidated(array $idSites, array $dates, $period,
320320

321321
$allPeriodsToInvalidate = $this->getAllPeriodsByYearMonth($period, $datesToInvalidate, $cascadeDown);
322322

323-
$this->markArchivesInvalidated($idSites, $allPeriodsToInvalidate, $segment, $period != 'range', $forceInvalidateNonexistantRanges, $name);
323+
$this->markArchivesInvalidated($idSites, $allPeriodsToInvalidate, $segment, $period != 'range', $forceInvalidateNonexistentRanges, $name);
324324

325325
$isInvalidatingDays = $period == 'day' || $cascadeDown || empty($period);
326326
$isNotInvalidatingSegment = empty($segment) || empty($segment->getString());
@@ -678,7 +678,7 @@ public function removeInvalidationsFromDistributedList($idSites, $pluginName = n
678678
* @throws \Exception
679679
*/
680680
private function markArchivesInvalidated($idSites, $dates, Segment $segment = null, $removeRanges = false,
681-
$forceInvalidateNonexistantRanges = false, $name = null)
681+
$forceInvalidateNonexistentRanges = false, $name = null)
682682
{
683683
$idSites = array_map('intval', $idSites);
684684

@@ -690,7 +690,7 @@ private function markArchivesInvalidated($idSites, $dates, Segment $segment = nu
690690
$table = ArchiveTableCreator::getNumericTable($tableDateObj);
691691
$yearMonths[] = $tableDateObj->toString('Y_m');
692692

693-
$this->model->updateArchiveAsInvalidated($table, $idSites, $datesForTable, $segment, $forceInvalidateNonexistantRanges, $name);
693+
$this->model->updateArchiveAsInvalidated($table, $idSites, $datesForTable, $segment, $forceInvalidateNonexistentRanges, $name);
694694

695695
if ($removeRanges) {
696696
$this->model->updateRangeArchiveAsInvalidated($table, $idSites, $datesForTable, $segment);

core/Auth/Password.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class Password
2626
*/
2727
private function preferredAlgorithm()
2828
{
29-
$passwordHashAlogrithm = Config::getInstance()->General['password_hash_algorithm'];
30-
switch ($passwordHashAlogrithm) {
29+
$passwordHashAlgorithm = Config::getInstance()->General['password_hash_algorithm'];
30+
switch ($passwordHashAlgorithm) {
3131
case "default":
3232
return PASSWORD_DEFAULT;
3333
case "bcrypt":

core/Columns/Dimension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ abstract class Dimension
133133
protected $acceptValues;
134134

135135
/**
136-
* Defines to which column in the MySQL database the segment belongs (if one is conifugred). Defaults to
136+
* Defines to which column in the MySQL database the segment belongs (if one is configured). Defaults to
137137
* `$this.dbTableName . '.'. $this.columnName` but you can customize it eg like `HOUR(log_visit.visit_last_action_time)`.
138138
*
139139
* @param string $sqlSegment

core/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ public static function hasJsonErrorOccurred()
747747
}
748748

749749
/**
750-
* Returns a human readable error message in case an error occcurred during the last json encode/decode.
750+
* Returns a human readable error message in case an error occurred during the last json encode/decode.
751751
* Returns an empty string in case there was no error.
752752
*
753753
* @return string

core/Concurrency/LockBackend/MySqlLockBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function setIfNotExists($key, $value, $ttlInSeconds)
5252
// remove any existing but expired lock
5353
// todo: we could combine get() and keyExists() in one query!
5454
if ($this->keyExists($key)) {
55-
// most of the time an expired key should not exist... we don't want to lock the row unncessarily therefore we check first
55+
// most of the time an expired key should not exist... we don't want to lock the row unnecessarily therefore we check first
5656
// if value exists...
5757
$sql = sprintf('DELETE FROM %s WHERE `key` = ? and not (%s)', $tablePrefixed, $this->getQueryPartExpiryTime());
5858
Db::query($sql, array($key));

core/CronArchive.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ private function invalidateArchivedReportsForSitesThatNeedToBeArchivedAgainImpl(
868868

869869
$this->logger->debug(' Invalidating custom date range ({date}) for site {idSite}', ['idSite' => $idSiteToInvalidate, 'date' => $date]);
870870

871-
$this->invalidateWithSegments($idSiteToInvalidate, $date, 'range', $_forceInvalidateNonexistant = true);
871+
$this->invalidateWithSegments($idSiteToInvalidate, $date, 'range', $_forceInvalidateNonexistent = true);
872872
}
873873

874874
$this->setInvalidationTime();
@@ -902,7 +902,7 @@ public function invalidateRecentDate($dateStr, $idSite)
902902
$this->invalidateWithSegments([$idSite], $date->toString(), 'day', false, $doNotIncludeTtlInExistingArchiveCheck = $isYesterday);
903903
}
904904

905-
private function invalidateWithSegments($idSites, $date, $period, $_forceInvalidateNonexistant = false, $doNotIncludeTtlInExistingArchiveCheck = false)
905+
private function invalidateWithSegments($idSites, $date, $period, $_forceInvalidateNonexistent = false, $doNotIncludeTtlInExistingArchiveCheck = false)
906906
{
907907
if ($date instanceof Date) {
908908
$date = $date->toString();
@@ -924,7 +924,7 @@ private function invalidateWithSegments($idSites, $date, $period, $_forceInvalid
924924
$this->logger->debug(' Found usable archive for {archive}, skipping invalidation.', ['archive' => $params]);
925925
} else {
926926
$this->getApiToInvalidateArchivedReport()->invalidateArchivedReports($idSite, $date, $period, $segment = false, $cascadeDown = false,
927-
$_forceInvalidateNonexistant);
927+
$_forceInvalidateNonexistent);
928928
}
929929

930930
foreach ($this->segmentArchiving->getAllSegmentsToArchive($idSite) as $segmentDefinition) {
@@ -955,7 +955,7 @@ private function invalidateWithSegments($idSites, $date, $period, $_forceInvalid
955955
}
956956

957957
$this->getApiToInvalidateArchivedReport()->invalidateArchivedReports($idSite, $date, $period, $segmentDefinition,
958-
$cascadeDown = false, $_forceInvalidateNonexistant);
958+
$cascadeDown = false, $_forceInvalidateNonexistent);
959959
}
960960
}
961961
}

core/DataAccess/ArchiveSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public static function getArchiveData($archiveIds, $recordNames, $archiveDataTyp
287287
// select a subtable id
288288
$bind = array();
289289
foreach ($recordNames as $recordName) {
290-
// to be backwards compatibe we need to look for the exact idSubtable blob and for the chunk
290+
// to be backwards compatible we need to look for the exact idSubtable blob and for the chunk
291291
// that stores the subtables (a chunk stores many blobs in one blob)
292292
$bind[] = $chunk->getRecordNameForTableId($recordName, $idSubtable);
293293
$bind[] = self::appendIdSubtable($recordName, $idSubtable);

core/DataAccess/LogAggregator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ public function getSegment()
201201
return $this->segment;
202202
}
203203

204-
public function setQueryOriginHint($nameOfOrigiin)
204+
public function setQueryOriginHint($nameOfOrigin)
205205
{
206-
$this->queryOriginHint = $nameOfOrigiin;
206+
$this->queryOriginHint = $nameOfOrigin;
207207
}
208208

209209
public function getSegmentTmpTableName()

0 commit comments

Comments
 (0)