WordPress at a glance
function is not described

Composer\Installers

MajimaInstaller::correctPluginName() private WC 1.0

Change hyphenated names to camelcase

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

No Hooks.

Return

Array.

Usage

// private - for code of main (parent) class only
$result = $this->correctPluginName( $vars );
$vars(array) (required)
-

Code of MajimaInstaller::correctPluginName() WC 5.0.0

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