public function CroogoInstaller::inflectPackageVars in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php \Composer\Installers\CroogoInstaller::inflectPackageVars()
Format package name to CamelCase
Overrides BaseInstaller::inflectPackageVars
File
- vendor/
composer/ installers/ src/ Composer/ Installers/ CroogoInstaller.php, line 14
Class
Namespace
Composer\InstallersCode
public function inflectPackageVars($vars) {
$vars['name'] = strtolower(str_replace(array(
'-',
'_',
), ' ', $vars['name']));
$vars['name'] = str_replace(' ', '', ucwords($vars['name']));
return $vars;
}