WordPress at a glance
function is not described

Composer\Installers

Symfony1Installer::inflectPackageVars() public WC 1.0

Format package name to CamelCase

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of Symfony1Installer::inflectPackageVars() WC 5.2.2

<?php
public function inflectPackageVars($vars)
{
    $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) {
        return strtoupper($matches[0][1]);
    }, $vars['name']);

    return $vars;
}