WordPress at a glance
function is not described

Composer\Installers

AglInstaller::inflectPackageVars() public WC 1.0

Format package name to CamelCase

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of AglInstaller::inflectPackageVars() WC 5.2.2

<?php
public function inflectPackageVars($vars)
{
    $vars['name'] = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) {
        return strtoupper($matches[1]);
    }, $vars['name']);

    return $vars;
}