Fix typos in comments (E-H)

Change-Id: I0748e0d5962fa909fdd6b7fcae4ab259bde4cdf1
This commit is contained in:
Siddharth VP 2021-12-30 18:14:13 +05:30
parent 2518706eae
commit 061ee25f7e
17 changed files with 23 additions and 23 deletions

View file

@ -31,7 +31,7 @@ interface EditFilterMergedContentHook {
* @param User $user User whois performing the edit
* @param bool $minoredit Whether the edit was marked as minor by the user.
* @return bool|void False or no return value with not $status->isOK() to abort the edit
* and show the edit form, true to continue. But because mutiple triggers of this hook
* and show the edit form, true to continue. But because multiple triggers of this hook
* may have different behavior in different version (T273354), you'd better return false
* and set $status->value to EditPage::AS_HOOK_ERROR_EXPECTED or any other customized value.
*/

View file

@ -111,7 +111,7 @@ class HookContainer implements SalvageableService {
* @param string $hook Name of the hook
* @param array $args Arguments to pass to hook handler
* @param array $options options map:
* - abortable: (bool) If false, handlers will not be allowed to abort the call sequenece.
* - abortable: (bool) If false, handlers will not be allowed to abort the call sequence.
* An exception will be raised if a handler returns anything other than true or null.
* - deprecatedVersion: (string) Version of MediaWiki this hook was deprecated in. For supporting
* Hooks::run() legacy $deprecatedVersion parameter. New core code should add deprecated

View file

@ -176,7 +176,7 @@ class HTMLFileCache extends FileCacheBase {
* Save this cache object with the given text.
* Use this as an ob_start() handler.
*
* Normally this is only registed as a handler if $wgUseFileCache is on.
* Normally this is only registered as a handler if $wgUseFileCache is on.
* If can be explicitly called by rebuildFileCache.php when it takes over
* handling file caching itself, disabling any automatic handling the
* process.

View file

@ -57,7 +57,7 @@ class ExternalStoreDB extends ExternalStoreMedium {
* Fetch data from given external store URL.
*
* The provided URL is in the form of `DB://cluster/id` or `DB://cluster/id/itemid`
* for concatened storage if ConcatenatedGzipHistoryBlob was used.
* for concatenated storage if ConcatenatedGzipHistoryBlob was used.
*
* @param string $url
* @return string|bool False if missing
@ -78,7 +78,7 @@ class ExternalStoreDB extends ExternalStoreMedium {
* Fetch multiple URLs from given external store.
*
* The provided URLs are in the form of `DB://cluster/id`, or `DB://cluster/id/itemid`
* for concatened storage if ConcatenatedGzipHistoryBlob was used.
* for concatenated storage if ConcatenatedGzipHistoryBlob was used.
*
* @param array $urls An array of external store URLs
* @return array A map from url to stored content. Failed results

View file

@ -45,7 +45,7 @@ use MediaWiki\User\UserIdentity;
* concrete functions are also typically overridden by child classes.
*
* Note that only the repo object knows what its file class is called. You should
* never name a file class explictly outside of the repo class. Instead use the
* never name a file class explicitly outside of the repo class. Instead use the
* repo's factory functions to generate file objects, for example:
*
* RepoGroup::singleton()->getLocalRepo()->newFile( $title );
@ -973,7 +973,7 @@ abstract class File implements IDBAccessObject, MediaHandlerState {
* This is a dummy function right now and always returns false. It could be
* implemented to extract a flag from the database. The trusted flag could be
* set on upload, if the user has sufficient privileges, to bypass script-
* and html-filters. It may even be coupled with cryptographics signatures
* and html-filters. It may even be coupled with cryptographic signatures
* or such.
*
* @return bool

View file

@ -121,7 +121,7 @@ use MediaWiki\Page\PageReference;
* 'disable-if' -- expression given as an array stating when the field
* should be disabled. See 'hide-if' for supported expressions.
* The 'hide-if' logic would also disable fields, you don't need
* to set this attribute with the same condiction manually.
* to set this attribute with the same condition manually.
* You can pass both 'disabled' and this attribute to omit extra
* ckeck, but this would function only for not 'disabled' fields.
* 'section' -- A string name for the section of the form to which the field
@ -1946,7 +1946,7 @@ class HTMLForm extends ContextSource {
* @return string
*/
public function getAction() {
// If an action is alredy provided, return it
// If an action is already provided, return it
if ( $this->mAction !== false ) {
return $this->mAction;
}

View file

@ -9,7 +9,7 @@ class HTMLInfoField extends HTMLFormField {
* @stable to call
*
* @param array $info
* In adition to the usual HTMLFormField parameters, this can take the following fields:
* In addition to the usual HTMLFormField parameters, this can take the following fields:
* - default: the value (text) of the field. Unlike other form field types, HTMLInfoField can
* take a closure as a default value, which will be evaluated with $info as its only parameter.
* - raw: if true, the value won't be escaped.

View file

@ -9,7 +9,7 @@ class HTMLRadioField extends HTMLFormField {
/**
* @stable to call
* @param array $params
* In adition to the usual HTMLFormField parameters, this can take the following fields:
* In addition to the usual HTMLFormField parameters, this can take the following fields:
* - flatlist: If given, the options will be displayed on a single line (wrapping to following
* lines if necessary), rather than each one on a line of its own. This is desirable mostly
* for very short lists of concisely labelled options.

View file

@ -19,7 +19,7 @@ class HTMLSelectLimitField extends HTMLSelectField {
return true;
}
// Let folks pick an explicit limit not from our list, as long as it's a real numbr.
// Let folks pick an explicit limit not from our list, as long as it's a real number.
if ( !in_array( $value, $this->mParams['options'] )
&& $value == intval( $value )
&& $value > 0

View file

@ -9,8 +9,8 @@ use Wikimedia\IPUtils;
*
* Optional parameters:
* 'exists' - Whether to validate that the user already exists
* 'ipallowed' - Whether an IP adress is interpreted as "valid"
* 'iprange' - Whether an IP adress range is interpreted as "valid"
* 'ipallowed' - Whether an IP address is interpreted as "valid"
* 'iprange' - Whether an IP address range is interpreted as "valid"
* 'iprangelimits' - Specifies the valid IP ranges for IPv4 and IPv6 in an array.
* defaults to IPv4 => 16; IPv6 => 32.
*

View file

@ -399,7 +399,7 @@ class HashRing implements Serializable {
$now = $this->getCurrentTime();
if ( $this->liveRing === null || min( $this->ejectExpiryByLocation ) <= $now ) {
// Live ring needs to be regerenated...
// Live ring needs to be regenerated...
$this->ejectExpiryByLocation = array_filter(
$this->ejectExpiryByLocation,
static function ( $expiry ) use ( $now ) {

View file

@ -62,7 +62,7 @@ use Wikimedia\Timestamp\ConvertibleTimestamp;
* @since 1.19
*/
class FSFileBackend extends FileBackendStore {
/** @var MapCacheLRU Cache for known prepared/usable directorries */
/** @var MapCacheLRU Cache for known prepared/usable directories */
protected $usableDirCache;
/** @var string Directory holding the container directories */
@ -812,7 +812,7 @@ class FSFileBackend extends FileBackendStore {
/**
* @param string $fsSrcPath Absolute file system path
* @param string $fsDstPath Absolute file system path
* @param bool $ignoreMissing Whether to no-op if the source file is non-existant
* @param bool $ignoreMissing Whether to no-op if the source file is non-existent
* @return string Command
*/
private function makeCopyCommand( $fsSrcPath, $fsDstPath, $ignoreMissing ) {

View file

@ -983,7 +983,7 @@ abstract class FileBackendStore extends FileBackend {
}
}
}
// Fetch local references of any remaning files...
// Fetch local references of any remaining files...
$params['srcs'] = array_diff( $params['srcs'], array_keys( $fsFiles ) );
foreach ( $this->doGetLocalReferenceMulti( $params ) as $path => $fsFile ) {
if ( $fsFile instanceof FSFile ) {

View file

@ -21,7 +21,7 @@
/**
* Wrapper around RecursiveDirectoryIterator/DirectoryIterator that
* catches exception or does any custom behavoir that we may want.
* catches exception or does any custom behavior that we may want.
* Do not use this class from places outside FSFileBackend.
*
* @ingroup FileBackend

View file

@ -522,7 +522,7 @@ class GlobalIdGenerator {
$msecCounter = (int)$data[2] % $msecCounterSize;
// Bump the counter if the time has not changed yet
if ( ++$msecCounter >= $msecCounterSize ) {
// More IDs generated with the same time than counterSize can accomodate
// More IDs generated with the same time than counterSize can accommodate
flock( $handle, LOCK_UN );
throw new RuntimeException( "Counter overflow for timestamp value." );
}

View file

@ -517,7 +517,7 @@ class Exif {
/**
* Convert gps in exif form to a single floating point number
* for example 10 degress 20`40`` S -> -10.34444
* for example 10 degrees 20`40`` S -> -10.34444
* @param string $prop A GPS coordinate exif tag name (like GPSLongitude)
*/
private function exifGPStoNumber( $prop ) {

View file

@ -300,7 +300,7 @@ class ExtensionRegistry {
}
/**
* Queries information about the software environment and constructs an appropiate version checker
* Queries information about the software environment and constructs an appropriate version checker
*
* @return VersionChecker
*/
@ -551,7 +551,7 @@ class ExtensionRegistry {
* Whether a thing has been loaded
* @param string $name
* @param string $constraint The required version constraint for this dependency
* @throws LogicException if a specific contraint is asked for,
* @throws LogicException if a specific constraint is asked for,
* but the extension isn't versioned
* @return bool
*/