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