WordPress at a glance
function is not described

Composer\Installers

PlentymarketsInstaller::inflectPackageVars() public WC 1.0

Remove hyphen, "plugin" and format to camelcase

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

No Hooks.

Return

Array. Nothing.

Usage

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

Code of PlentymarketsInstaller::inflectPackageVars() WC 5.3.0

<?php
public function inflectPackageVars($vars)
{
    $vars['name'] = explode("-", $vars['name']);
    foreach ($vars['name'] as $key => $name) {
        $vars['name'][$key] = ucfirst($vars['name'][$key]);
        if (strcasecmp($name, "Plugin") == 0) {
            unset($vars['name'][$key]);
        }
    }
    $vars['name'] = implode("",$vars['name']);

    return $vars;
}