docs: Fix 'dependant' typos

The intended word in all these cases was the adjective "dependent".

Whilst the "dependant" does exist, it is a noun and generally
refers to a person. The word is rare used in general, but
especially so in a technology context.

Change-Id: Ic7e2d2ea6a566f4139ff1fdb77f38b0e962ccd9c
This commit is contained in:
Timo Tijhof 2021-02-18 06:38:52 +00:00 committed by Krinkle
parent ed543be03b
commit 26c9849330
9 changed files with 16 additions and 21 deletions

View file

@ -3395,7 +3395,7 @@ class OutputPage extends ContextSource {
// Allow extensions to add their custom variables to the mw.config map.
// Use the 'ResourceLoaderGetConfigVars' hook if the variable is not
// page-dependant but site-wide (without state).
// page-dependent but site-wide (without state).
// Alternatively, you may want to use OutputPage->addJsConfigVars() instead.
$this->getHookRunner()->onMakeGlobalVariablesScript( $vars, $this );

View file

@ -1,10 +1,5 @@
<?php
use MediaWiki\Permissions\Authority;
/**
* Request-dependant objects containers.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
@ -20,11 +15,16 @@ use MediaWiki\Permissions\Authority;
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @since 1.26
*
* @file
*/
use MediaWiki\Permissions\Authority;
/**
* Request-dependent objects containers.
*
* @since 1.26
*/
interface MutableContext {
/**

View file

@ -26,7 +26,7 @@
use MediaWiki\MediaWikiServices;
/**
* Database independant search index updater
* Database independent search index updater
*
* @ingroup Search
*/

View file

@ -1,7 +1,5 @@
<?php
/**
* Foreign repository accessible through api.php requests.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
@ -24,7 +22,7 @@
use MediaWiki\Logger\LoggerFactory;
/**
* A foreign repository with a remote MediaWiki with an API thingy
* A foreign repository for a remote MediaWiki accessible through api.php requests.
*
* Example config:
*

View file

@ -1,7 +1,5 @@
<?php
/**
* Foreign file accessible through api.php requests.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
@ -25,7 +23,6 @@ use MediaWiki\MediaWikiServices;
/**
* Foreign file accessible through api.php requests.
* Very hacky and inefficient, do not use :D
*
* @ingroup FileAbstraction
*/
@ -63,7 +60,7 @@ class ForeignAPIFile extends File {
'iiprop' => self::getProps(),
'prop' => 'imageinfo',
'iimetadataversion' => MediaHandler::getMetadataVersion(),
// extmetadata is language-dependant, accessing the current language here
// extmetadata is language-dependent, accessing the current language here
// would be problematic, so we just get them all
'iiextmetadatamultilang' => 1,
] );

View file

@ -944,7 +944,7 @@ class WANObjectCache implements
* these verifications only after a "time-till-verify" (TTV) has passed. This is a middle
* ground between using blind TTLs and using constant verification. The adaptiveTTL() method
* can be used to dynamically adjust the TTV. Also, the initial TTV can make use of the
* last-modified times of the dependant entities (either from the DB or the "check" keys).
* last-modified times of the dependent entities (either from the DB or the "check" keys).
*
* Example usage:
* @code
@ -1127,7 +1127,7 @@ class WANObjectCache implements
* having to inspect a "current time left" variable (e.g. $curTTL, $curTTLs), a cache
* regeneration will automatically be triggered using the callback.
*
* The $ttl argument and "hotTTR" option (in $opts) use time-dependant randomization
* The $ttl argument and "hotTTR" option (in $opts) use time-dependent randomization
* to avoid stampedes. Keys that are slow to regenerate and either heavily used
* or subject to explicit (unpredictable) purges, may need additional mechanisms.
* The simplest way to avoid stampedes for such keys is to use 'lockTSE' (in $opts).

View file

@ -4685,7 +4685,7 @@ abstract class Database implements IDatabase, IMaintainableDatabase, LoggerAware
}
}
// Clear any commit-dependant callbacks. They might even be present
// Clear any commit-dependent callbacks. They might even be present
// only due to transaction rounds, with no SQL transaction being active
$this->trxPostCommitOrIdleCallbacks = [];
$this->trxPreCommitOrIdleCallbacks = [];

View file

@ -16,7 +16,7 @@ var cachedAccessKeyModifiers,
/**
* Find the modifier keys that need to be pressed together with the accesskey to trigger the input.
*
* The result is dependant on the ua paramater or the current platform.
* The result is dependent on the ua paramater or the current platform.
* For browsers that support accessKeyLabel, #getAccessKeyLabel never calls here.
* Valid key values that are returned can be: ctrl, alt, option, shift, esc
*

View file

@ -740,7 +740,7 @@
* - When a module reaches a final state, pending job callbacks for the
* module from mw.loader.using() should be called.
* - When a module reaches the 'ready' state from #execute(), consider
* executing dependant modules now having their dependencies satisfied.
* executing dependent modules now having their dependencies satisfied.
* - When a module reaches the 'loaded' state from mw.loader.implement,
* consider executing it, if it has no unsatisfied dependencies.
*