You are here

protected function MediaWikiInstaller::inflectExtensionVars in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

MediaWikiInstaller

Namespace

Composer\Installers

Code

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;
}