WordPress at a glance
function is not described

Composer\Installers

MediaWikiInstaller::inflectPackageVars() public WC 1.0

Format package name.

For package type mediawiki-extension, cut off a trailing '-extension' if present and transform to CamelCase keeping existing uppercase chars.

For package type mediawiki-skin, cut off a trailing '-skin' if present.

{} It's a method of the class: MediaWikiInstaller{}

No Hooks.

Return

null. Nothing.

Usage

$MediaWikiInstaller = new MediaWikiInstaller();
$MediaWikiInstaller->inflectPackageVars( $vars );
$vars (required)
-

Code of MediaWikiInstaller::inflectPackageVars() WC 5.3.0

<?php
public function inflectPackageVars($vars)
{

    if ($vars['type'] === 'mediawiki-extension') {
        return $this->inflectExtensionVars($vars);
    }

    if ($vars['type'] === 'mediawiki-skin') {
        return $this->inflectSkinVars($vars);
    }

    return $vars;
}