diff options
author | Siddharth VP <siddharthvp@gmail.com> | 2022-01-09 23:14:44 +0530 |
---|---|---|
committer | Siddharth VP <siddharthvp@gmail.com> | 2022-01-09 23:14:44 +0530 |
commit | 38295f922688d822734319a9ba33dce807c775c3 (patch) | |
tree | f3d6b09d3235e4d16cf8570cbf72fc9a458ea792 | |
parent | b77dd0640c602f8389ea926e3881e13cd78d52b5 (diff) |
Fix typos in comments (N-R)
Change-Id: I2d1bdb7531ff5126114a391550c2615ea6e244b3
20 files changed, 34 insertions, 34 deletions
diff --git a/includes/OutputPage.php b/includes/OutputPage.php index c47cf27a3a77..5d09168f0452 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -3123,7 +3123,7 @@ class OutputPage extends ContextSource { 'nonce' => $this->CSP->getNonce(), // When 'safemode', disallowUserJs(), or reduceAllowedModules() is used // to only restrict modules to ORIGIN_CORE (ie. disallow ORIGIN_USER), the list of - // modules enqueud for loading on this page is filtered to just those. + // modules enqueued for loading on this page is filtered to just those. // However, to make sure we also apply the restriction to dynamic dependencies and // lazy-loaded modules at run-time on the client-side, pass 'safemode' down to the // StartupModule so that the client-side registry will not contain any restricted @@ -3248,7 +3248,7 @@ class OutputPage extends ContextSource { } /** - * Explicily load or embed modules on a page. + * Explicitly load or embed modules on a page. * * @param array|string $modules One or more module names * @param string $only ResourceLoaderModule TYPE_ class constant diff --git a/includes/Revision/RevisionStore.php b/includes/Revision/RevisionStore.php index e8b7c1e12436..c8a55fab1ac3 100644 --- a/includes/Revision/RevisionStore.php +++ b/includes/Revision/RevisionStore.php @@ -2122,7 +2122,7 @@ class RevisionStore * 'slots' - a list of slot role names to fetch. If omitted or true or null, * all slots are fetched * 'blobs' - whether the serialized content of each slot should be loaded. - * If true, the serialiezd content will be present in the slot row + * If true, the serialized content will be present in the slot row * in the blob_data field. * @param int $queryFlags * diff --git a/includes/Storage/PageUpdater.php b/includes/Storage/PageUpdater.php index 45557c666b20..dad75d02137c 100644 --- a/includes/Storage/PageUpdater.php +++ b/includes/Storage/PageUpdater.php @@ -1263,7 +1263,7 @@ class PageUpdater { return $status->fatal( 'edit-conflict' ); } - // At this point we are now comitted to returning an OK + // At this point we are now committed to returning an OK // status unless some DB query error or other exception comes up. // This way callers don't have to call rollback() if $status is bad // unless they actually try to catch exceptions (which is rare). @@ -1394,7 +1394,7 @@ class PageUpdater { return $status->fatal( 'edit-already-exists' ); } - // At this point we are now comitted to returning an OK + // At this point we are now committed to returning an OK // status unless some DB query error or other exception comes up. // This way callers don't have to call rollback() if $status is bad // unless they actually try to catch exceptions (which is rare). diff --git a/includes/libs/redis/RedisConnRef.php b/includes/libs/redis/RedisConnRef.php index 1a4a6dd96d74..fbbde4368b00 100644 --- a/includes/libs/redis/RedisConnRef.php +++ b/includes/libs/redis/RedisConnRef.php @@ -21,7 +21,7 @@ use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerInterface; /** - * Helper class to handle automatically marking connectons as reusable (via RAII pattern) + * Helper class to handle automatically marking connections as reusable (via RAII pattern) * * This class simply wraps the Redis class and can be used the same way * @@ -144,7 +144,7 @@ class RedisConnRef implements LoggerAwareInterface { /** * Key Scan - * Handle this explicity due to needing the iterator passed by reference. + * Handle this explicitly due to needing the iterator passed by reference. * See: https://github.com/phpredis/phpredis#scan * * @param int &$iterator @@ -158,7 +158,7 @@ class RedisConnRef implements LoggerAwareInterface { /** * Set Scan - * Handle this explicity due to needing the iterator passed by reference. + * Handle this explicitly due to needing the iterator passed by reference. * See: https://github.com/phpredis/phpredis#sScan * * @param string $key @@ -173,7 +173,7 @@ class RedisConnRef implements LoggerAwareInterface { /** * Hash Scan - * Handle this explicity due to needing the iterator passed by reference. + * Handle this explicitly due to needing the iterator passed by reference. * See: https://github.com/phpredis/phpredis#hScan * * @param string $key @@ -188,7 +188,7 @@ class RedisConnRef implements LoggerAwareInterface { /** * Sorted Set Scan - * Handle this explicity due to needing the iterator passed by reference. + * Handle this explicitly due to needing the iterator passed by reference. * See: https://github.com/phpredis/phpredis#hScan * * @param string $key diff --git a/includes/libs/redis/RedisConnectionPool.php b/includes/libs/redis/RedisConnectionPool.php index 50a312435532..aabb17c79ca8 100644 --- a/includes/libs/redis/RedisConnectionPool.php +++ b/includes/libs/redis/RedisConnectionPool.php @@ -172,7 +172,7 @@ class RedisConnectionPool implements LoggerAwareInterface { * * @param string $server A hostname/port combination or the absolute path of a UNIX socket. * If a hostname is specified but no port, port 6379 will be used. - * @param LoggerInterface|null $logger PSR-3 logger intance. [optional] + * @param LoggerInterface|null $logger PSR-3 logger instance. [optional] * @return RedisConnRef|Redis|bool Returns false on failure * @throws InvalidArgumentException */ diff --git a/includes/libs/virtualrest/RestbaseVirtualRESTService.php b/includes/libs/virtualrest/RestbaseVirtualRESTService.php index a656ce17915b..a14fb9d1142e 100644 --- a/includes/libs/virtualrest/RestbaseVirtualRESTService.php +++ b/includes/libs/virtualrest/RestbaseVirtualRESTService.php @@ -38,7 +38,7 @@ class RestbaseVirtualRESTService extends VirtualRESTService { * - forwardCookies : cookies to forward to RESTBase/Parsoid (as a Cookie * header string) or false (optional) * Note: forwardCookies will in the future be a boolean - * only, signifing request cookies should be forwarded + * only, signifying request cookies should be forwarded * to the service; the current state is due to the way * VE handles this particular parameter * - HTTPProxy : HTTP proxy to use (optional) diff --git a/includes/logging/RightsLogFormatter.php b/includes/logging/RightsLogFormatter.php index dd8014051c89..914593814621 100644 --- a/includes/logging/RightsLogFormatter.php +++ b/includes/logging/RightsLogFormatter.php @@ -149,7 +149,7 @@ class RightsLogFormatter extends LogFormatter { } // place all temporary memberships first, to avoid the ambiguity of - // "adinistrator, bureaucrat and importer (temporary, until X time)" + // "administrator, bureaucrat and importer (temporary, until X time)" return $uiLanguage->listToText( array_merge( $tempList, $permList ) ); } diff --git a/includes/page/PageLookup.php b/includes/page/PageLookup.php index c9eb69c38c6a..779df0116109 100644 --- a/includes/page/PageLookup.php +++ b/includes/page/PageLookup.php @@ -7,7 +7,7 @@ use InvalidArgumentException; use MediaWiki\Linker\LinkTarget; /** - * Service interface for looking up infermation about wiki pages + * Service interface for looking up information about wiki pages * * @since 1.36 */ diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 4b81ef60de6e..7aecbb68a0ce 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -5992,7 +5992,7 @@ class Parser { $revObject = $this->getRevisionRecordObject(); # if this variable is subst: the revision id will be blank, - # so just use the parser input size, because the own substituation + # so just use the parser input size, because the own substitution # will change the size. if ( $revObject ) { $this->mRevisionSize = $revObject->getSize(); @@ -6138,7 +6138,7 @@ class Parser { * string and leaves only the resultant text (i.e. the result of * [[User:WikiSysop|Sysop]] would be "Sysop" and the result of * [[User:WikiSysop]] would be "User:WikiSysop") - this is intended - * to create valid section anchors by mimicing the output of the + * to create valid section anchors by mimicking the output of the * parser when headings are parsed. * * @param string $text Text string to be stripped of wikitext diff --git a/includes/parser/ParserCache.php b/includes/parser/ParserCache.php index f0e963bfcfb2..feb868f12b2c 100644 --- a/includes/parser/ParserCache.php +++ b/includes/parser/ParserCache.php @@ -292,7 +292,7 @@ class ParserCache { * * @param PageRecord $page * @param ParserOptions $options - * @param array|null $usedOptions Defaults to all cache verying options. + * @param array|null $usedOptions Defaults to all cache varying options. * @return string * @internal * @since 1.36 diff --git a/includes/password/Password.php b/includes/password/Password.php index 5f6e49f9d2fa..c33bbef498fc 100644 --- a/includes/password/Password.php +++ b/includes/password/Password.php @@ -165,7 +165,7 @@ abstract class Password { /** * Convert this hash to a string that can be stored in the database * - * The resulting string should be considered the seralized representation + * The resulting string should be considered the serialized representation * of this hash, i.e., if the return value were recycled back into * PasswordFactory::newFromCiphertext, the returned object would be equivalent to * this; also, if two objects return the same value from this function, they diff --git a/includes/resourceloader/ResourceLoader.php b/includes/resourceloader/ResourceLoader.php index 680f030b316e..af804044bed5 100644 --- a/includes/resourceloader/ResourceLoader.php +++ b/includes/resourceloader/ResourceLoader.php @@ -955,7 +955,7 @@ class ResourceLoader implements LoggerAwareInterface { } /** - * Respond with HTTP 304 Not Modified if appropiate. + * Respond with HTTP 304 Not Modified if appropriate. * * If there's an If-None-Match header, respond with a 304 appropriately * and clear out the output buffer. If the client cache is too old then do nothing. diff --git a/includes/resourceloader/ResourceLoaderContext.php b/includes/resourceloader/ResourceLoaderContext.php index 89d6e0683d5a..6c87bf0d3d0f 100644 --- a/includes/resourceloader/ResourceLoaderContext.php +++ b/includes/resourceloader/ResourceLoaderContext.php @@ -426,7 +426,7 @@ class ResourceLoaderContext implements MessageLocalizer { * split up handling of individual modules. Including it here would massively fragment * the cache and decrease its usefulness. * - * E.g. Used by RequestFileCache to form a cache key for storing the reponse output. + * E.g. Used by RequestFileCache to form a cache key for storing the response output. * * @return string */ diff --git a/includes/resourceloader/ResourceLoaderFileModule.php b/includes/resourceloader/ResourceLoaderFileModule.php index e38dd4f219e8..a5a6a1db5742 100644 --- a/includes/resourceloader/ResourceLoaderFileModule.php +++ b/includes/resourceloader/ResourceLoaderFileModule.php @@ -610,7 +610,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { $options = []; foreach ( [ - // The following properties are omitted because they don't affect the module reponse: + // The following properties are omitted because they don't affect the module response: // - localBasePath (Per T104950; Changes when absolute directory name changes. If // this affects 'scripts' and other file paths, getFileHashes accounts for that.) // - remoteBasePath (Per T104950) @@ -955,7 +955,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { /** * Get the contents of a list of JavaScript files. Helper for getScript(). * - * @param string[] $scripts List of file paths to scripts to read, remap and concetenate + * @param string[] $scripts List of file paths to scripts to read, remap and concatenate * @return string Concatenated JavaScript data from $scripts * @throws RuntimeException */ diff --git a/includes/resourceloader/ResourceLoaderImage.php b/includes/resourceloader/ResourceLoaderImage.php index 343ac22c15c9..5af93e165fd7 100644 --- a/includes/resourceloader/ResourceLoaderImage.php +++ b/includes/resourceloader/ResourceLoaderImage.php @@ -144,7 +144,7 @@ class ResourceLoaderImage { } /** - * @internal For unit testing overrride + * @internal For unit testing override * @param string $lang * @return string[] */ diff --git a/includes/resourceloader/ResourceLoaderLessVarFileModule.php b/includes/resourceloader/ResourceLoaderLessVarFileModule.php index 6cecef9ce6a2..eb0b1e5aeea4 100644 --- a/includes/resourceloader/ResourceLoaderLessVarFileModule.php +++ b/includes/resourceloader/ResourceLoaderLessVarFileModule.php @@ -63,7 +63,7 @@ class ResourceLoaderLessVarFileModule extends ResourceLoaderFileModule { private function pluckFromMessageBlob( $blob, array $allowed ): array { $data = $blob ? json_decode( $blob, true ) : []; // Keep only the messages intended for LESS export - // (opposite of getMesssages essentially). + // (opposite of getMessages essentially). return array_intersect_key( $data, array_fill_keys( $allowed, true ) ); } diff --git a/includes/resourceloader/ResourceLoaderModule.php b/includes/resourceloader/ResourceLoaderModule.php index 477d1137f30a..d45c437ea602 100644 --- a/includes/resourceloader/ResourceLoaderModule.php +++ b/includes/resourceloader/ResourceLoaderModule.php @@ -290,7 +290,7 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { * * The default behavior is to return a `load.php?only=scripts&module=<name>` URL. * - * Module classes that merely wrap one or more other script files in prodution mode, may + * Module classes that merely wrap one or more other script files in production mode, may * override this method to return an array of raw URLs for those underlying scripts, * if those are individually web-accessible. * @@ -494,11 +494,11 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { } /** - * Get the indirect dependencies for this module persuant to the skin/language context + * Get the indirect dependencies for this module pursuant to the skin/language context * * These are only image files referenced by the module's stylesheet * - * If niether setFileDependencies() nor setDependencyLoadCallback() was called, this + * If neither setFileDependencies() nor setDependencyLoadCallback() was called, this * will simply return a placeholder with an empty file list * * @see ResourceLoader::setFileDependencies() @@ -525,7 +525,7 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { } /** - * Set the indirect dependencies for this module persuant to the skin/language context + * Set the indirect dependencies for this module pursuant to the skin/language context * * These are only image files referenced by the module's stylesheet * @@ -541,7 +541,7 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { } /** - * Save the indirect dependencies for this module persuant to the skin/language context + * Save the indirect dependencies for this module pursuant to the skin/language context * * @param ResourceLoaderContext $context * @param string[] $curFileRefs List of newly computed indirect file dependencies @@ -987,7 +987,7 @@ abstract class ResourceLoaderModule implements LoggerAwareInterface { } /** - * Check whether this module should be embeded rather than linked + * Check whether this module should be embedded rather than linked * * Modules returning true here will be embedded rather than loaded by * ResourceLoaderClientHtml. diff --git a/includes/resourceloader/ResourceLoaderSkinModule.php b/includes/resourceloader/ResourceLoaderSkinModule.php index bd5f4b13aea5..03ad9a9d9fa2 100644 --- a/includes/resourceloader/ResourceLoaderSkinModule.php +++ b/includes/resourceloader/ResourceLoaderSkinModule.php @@ -196,7 +196,7 @@ class ResourceLoaderSkinModule extends ResourceLoaderLessVarFileModule { /** * Default for when the 'features' parameter is absent. * - * For backward-compatiblity, when the parameter is not declared + * For backward-compatibility, when the parameter is not declared * only 'logo' and 'legacy' styles are loaded. * * @var string[] @@ -546,7 +546,7 @@ class ResourceLoaderSkinModule extends ResourceLoaderLessVarFileModule { } /** - * Modifies configured logo width/height to ensure they are present and scaleable + * Modifies configured logo width/height to ensure they are present and scalable * with different font-sizes. * @param array $logoElement with width, height and src keys. * @return array modified version of $logoElement diff --git a/includes/resourceloader/ResourceLoaderWikiModule.php b/includes/resourceloader/ResourceLoaderWikiModule.php index 403a4ce8eec6..c1be9ac8bf81 100644 --- a/includes/resourceloader/ResourceLoaderWikiModule.php +++ b/includes/resourceloader/ResourceLoaderWikiModule.php @@ -484,7 +484,7 @@ class ResourceLoaderWikiModule extends ResourceLoaderModule { } // T70488: For other modules (i.e. ones that are called in cached html output) only check - // page existance. This ensures that, if some pages in a module are temporarily blanked, + // page existence. This ensures that, if some pages in a module are temporarily blanked, // we don't end omit the module's script or link tag on some pages. return count( $revisions ) === 0; } diff --git a/includes/watcheditem/NoWriteWatchedItemStore.php b/includes/watcheditem/NoWriteWatchedItemStore.php index 822b3f172d63..e632736a6103 100644 --- a/includes/watcheditem/NoWriteWatchedItemStore.php +++ b/includes/watcheditem/NoWriteWatchedItemStore.php @@ -39,7 +39,7 @@ class NoWriteWatchedItemStore implements WatchedItemStoreInterface { private const DB_READONLY_ERROR = 'The watchlist is currently readonly.'; /** - * Initialy set WatchedItemStore that will be used in cases where writing is not needed. + * Initially set WatchedItemStore that will be used in cases where writing is not needed. * @param WatchedItemStoreInterface $actualStore */ public function __construct( WatchedItemStoreInterface $actualStore ) { |