WordPress at a glance
function is not described

Composer\Installers

DokuWikiInstaller::inflectPackageVars() public WC 1.0

Format package name.

For package type dokuwiki-plugin, cut off a trailing '-plugin', or leading dokuwiki_ if present.

For package type dokuwiki-template, cut off a trailing '-template' if present.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of DokuWikiInstaller::inflectPackageVars() WC 5.3.0

<?php
public function inflectPackageVars($vars)
{

    if ($vars['type'] === 'dokuwiki-plugin') {
        return $this->inflectPluginVars($vars);
    }

    if ($vars['type'] === 'dokuwiki-template') {
        return $this->inflectTemplateVars($vars);
    }

    return $vars;
}