function SyDESInstaller::inflectModuleVars
Parameters
array<string, string> $vars:
Return value
array<string, string>
1 call to SyDESInstaller::inflectModuleVars()
- SyDESInstaller::inflectPackageVars in vendor/
composer/ installers/ src/ Composer/ Installers/ SyDESInstaller.php - Format module name.
File
-
vendor/
composer/ installers/ src/ Composer/ Installers/ SyDESInstaller.php, line 35
Class
Namespace
Composer\InstallersCode
public function inflectModuleVars(array $vars) : array {
$vars['name'] = $this->pregReplace('/(^sydes-|-module$)/i', '', $vars['name']);
$vars['name'] = str_replace(array(
'-',
'_',
), ' ', $vars['name']);
$vars['name'] = str_replace(' ', '', ucwords($vars['name']));
return $vars;
}