WordPress at a glance
function is not described

Composer\Installers

OctoberInstaller::inflectPluginVars() protected WC 1.0

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

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->inflectPluginVars( $vars );
$vars (required)
-

Code of OctoberInstaller::inflectPluginVars() WC 5.2.2

<?php
protected function inflectPluginVars($vars)
{
    $vars['name'] = preg_replace('/^oc-|-plugin$/', '', $vars['name']);
    $vars['vendor'] = preg_replace('/[^a-z0-9_]/i', '', $vars['vendor']);

    return $vars;
}