WordPress at a glance
function is not described

Composer\Installers

CakePHPInstaller::inflectPackageVars() public WC 1.0

Format package name to CamelCase

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of CakePHPInstaller::inflectPackageVars() WC 5.3.0

<?php
public function inflectPackageVars($vars)
{
    if ($this->matchesCakeVersion('>=', '3.0.0')) {
        return $vars;
    }

    $nameParts = explode('/', $vars['name']);
    foreach ($nameParts as &$value) {
        $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
        $value = str_replace(array('-', '_'), ' ', $value);
        $value = str_replace(' ', '', ucwords($value));
    }
    $vars['name'] = implode('/', $nameParts);

    return $vars;
}