protected function MediaWikiInstaller::inflectExtensionVars in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php \Composer\Installers\MediaWikiInstaller::inflectExtensionVars()
1 call to MediaWikiInstaller::inflectExtensionVars()
- MediaWikiInstaller::inflectPackageVars in vendor/
composer/ installers/ src/ Composer/ Installers/ MediaWikiInstaller.php - Format package name.
File
- vendor/
composer/ installers/ src/ Composer/ Installers/ MediaWikiInstaller.php, line 34
Class
Namespace
Composer\InstallersCode
protected function inflectExtensionVars($vars) {
$vars['name'] = preg_replace('/-extension$/', '', $vars['name']);
$vars['name'] = str_replace('-', ' ', $vars['name']);
$vars['name'] = str_replace(' ', '', ucwords($vars['name']));
return $vars;
}