WordPress at a glance
function is not described

Composer\Installers

OntoWikiInstaller::inflectPackageVars() public WC 1.0

Format package name to lower case and remove ".ontowiki" suffix

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of OntoWikiInstaller::inflectPackageVars() WC 5.2.2

<?php
public function inflectPackageVars($vars)
{
    $vars['name'] = strtolower($vars['name']);
    $vars['name'] = preg_replace('/.ontowiki$/', '', $vars['name']);
    $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);
    $vars['name'] = preg_replace('/-translation$/', '', $vars['name']);

    return $vars;
}