WordPress at a glance
function is not described

Composer\Installers

TYPO3FlowInstaller::inflectPackageVars() public WC 1.0

Modify the package name to be a TYPO3 Flow style key.

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

No Hooks.

Return

Array. Nothing.

Usage

$TYPO3FlowInstaller = new TYPO3FlowInstaller();
$TYPO3FlowInstaller->inflectPackageVars( $vars );
$vars(array) (required)
-

Code of TYPO3FlowInstaller::inflectPackageVars() WC 5.2.2

<?php
public function inflectPackageVars($vars)
{
    $autoload = $this->package->getAutoload();
    if (isset($autoload['psr-0']) && is_array($autoload['psr-0'])) {
        $namespace = key($autoload['psr-0']);
        $vars['name'] = str_replace('\\', '.', $namespace);
    }
    if (isset($autoload['psr-4']) && is_array($autoload['psr-4'])) {
        $namespace = key($autoload['psr-4']);
        $vars['name'] = rtrim(str_replace('\\', '.', $namespace), '.');
    }

    return $vars;
}