WordPress at a glance
function is not described

Composer\Installers

AsgardInstaller::inflectPluginVars() protected WC 1.0

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

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->inflectPluginVars( $vars );
$vars (required)
-

Code of AsgardInstaller::inflectPluginVars() WC 5.3.0

<?php
protected function inflectPluginVars($vars)
{
    $vars['name'] = preg_replace('/-module$/', '', $vars['name']);
    $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
    $vars['name'] = str_replace(' ', '', ucwords($vars['name']));

    return $vars;
}