You are here

public function AglInstaller::inflectPackageVars in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/composer/installers/src/Composer/Installers/AglInstaller.php \Composer\Installers\AglInstaller::inflectPackageVars()

Format package name to CamelCase

Overrides BaseInstaller::inflectPackageVars

File

vendor/composer/installers/src/Composer/Installers/AglInstaller.php, line 13

Class

AglInstaller

Namespace

Composer\Installers

Code

public function inflectPackageVars($vars) {
  $vars['name'] = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) {
    return strtoupper($matches[1]);
  }, $vars['name']);
  return $vars;
}