From a4835b43c7bdcd27e7307936c622fd0db7dece03 Mon Sep 17 00:00:00 2001 From: DannyS712 Date: Tue, 20 Aug 2019 00:47:01 +0000 Subject: [PATCH] docs: Fix typos for 'parameter' and 'perform' Bug: T201491 Change-Id: I37ed48907bf7c1a1d4ebab7b10b41a77623eba8a --- docs/pageupdater.txt | 2 +- includes/jobqueue/jobs/ActivityUpdateJob.php | 2 +- includes/resourceloader/ResourceLoaderFileModule.php | 2 +- includes/specials/SpecialJavaScriptTest.php | 2 +- maintenance/createAndPromote.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/pageupdater.txt b/docs/pageupdater.txt index fd084c0587..3d113f6569 100644 --- a/docs/pageupdater.txt +++ b/docs/pageupdater.txt @@ -148,7 +148,7 @@ parent of $revision parameter passed to prepareUpdate(). transformation (PST) and allow subsequent access to the canonical ParserOutput of the revision. getSlots() and getCanonicalParserOutput() as well as getSecondaryDataUpdates() may be used after prepareContent() was called. Calling prepareContent() with the same -parameters again has no effect. Calling it again with mismatching paramters, or calling +parameters again has no effect. Calling it again with mismatching parameters, or calling it after prepareUpdate() was called, triggers a LogicException. - prepareUpdate() is called after the new revision has been created. This may happen diff --git a/includes/jobqueue/jobs/ActivityUpdateJob.php b/includes/jobqueue/jobs/ActivityUpdateJob.php index 4de72a9b12..d27056dc02 100644 --- a/includes/jobqueue/jobs/ActivityUpdateJob.php +++ b/includes/jobqueue/jobs/ActivityUpdateJob.php @@ -42,7 +42,7 @@ class ActivityUpdateJob extends Job { static $required = [ 'type', 'userid', 'notifTime', 'curTime' ]; $missing = implode( ', ', array_diff( $required, array_keys( $this->params ) ) ); if ( $missing != '' ) { - throw new InvalidArgumentException( "Missing paramter(s) $missing" ); + throw new InvalidArgumentException( "Missing parameter(s) $missing" ); } $this->removeDuplicates = true; diff --git a/includes/resourceloader/ResourceLoaderFileModule.php b/includes/resourceloader/ResourceLoaderFileModule.php index eed2aeda80..d308d5038a 100644 --- a/includes/resourceloader/ResourceLoaderFileModule.php +++ b/includes/resourceloader/ResourceLoaderFileModule.php @@ -1015,7 +1015,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { * Keeps track of all used files and adds them to localFileRefs. * * @since 1.22 - * @since 1.27 Added $context paramter. + * @since 1.27 Added $context parameter. * @throws Exception If less.php encounters a parse error * @param string $fileName File path of LESS source * @param ResourceLoaderContext $context Context in which to generate script diff --git a/includes/specials/SpecialJavaScriptTest.php b/includes/specials/SpecialJavaScriptTest.php index 8c137aa175..50a909f5e5 100644 --- a/includes/specials/SpecialJavaScriptTest.php +++ b/includes/specials/SpecialJavaScriptTest.php @@ -111,7 +111,7 @@ class SpecialJavaScriptTest extends SpecialPage { $qunitConfig = 'QUnit.config.autostart = false;' . 'if (window.__karma__) {' // karma-qunit's use of autostart=false and QUnit.start conflicts with ours. - // Hack around this by replacing 'karma.loaded' with a no-op and perfom its duty of calling + // Hack around this by replacing 'karma.loaded' with a no-op and perform its duty of calling // `__karma__.start()` ourselves. See . . 'window.__karma__.loaded = function () {};' . '}'; diff --git a/maintenance/createAndPromote.php b/maintenance/createAndPromote.php index da9b4d63a0..505168e84b 100644 --- a/maintenance/createAndPromote.php +++ b/maintenance/createAndPromote.php @@ -114,7 +114,7 @@ class CreateAndPromote extends Maintenance { if ( !$exists ) { // Create the user via AuthManager as there may be various side - // effects that are perfomed by the configured AuthManager chain. + // effects that are performed by the configured AuthManager chain. $status = MediaWiki\Auth\AuthManager::singleton()->autoCreateUser( $user, MediaWiki\Auth\AuthManager::AUTOCREATE_SOURCE_MAINT, -- 2.20.1