You are here

public function CroogoInstaller::inflectPackageVars in Zircon Profile 8

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

CroogoInstaller

Namespace

Composer\Installers

Code

public function inflectPackageVars($vars) {
  $vars['name'] = strtolower(str_replace(array(
    '-',
    '_',
  ), ' ', $vars['name']));
  $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
  return $vars;
}