ComposerInstallersRadPHPInstaller

The Simple Calendar Composer Installers RadPHPInstaller class.

Defined (1)

The class is defined in the following location(s).

/vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php  
  1. class RadPHPInstaller extends BaseInstaller 
  2. protected $locations = array( 
  3. 'bundle' => 'src/{$name}/' 
  4. ); 
  5.  
  6. /** 
  7. * Format package name to CamelCase 
  8. */ 
  9. public function inflectPackageVars($vars) 
  10. $nameParts = explode('/', $vars['name']); 
  11. foreach ($nameParts as &$value) { 
  12. $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value)); 
  13. $value = str_replace(array('-', '_'), ' ', $value); 
  14. $value = str_replace(' ', '', ucwords($value)); 
  15. $vars['name'] = implode('/', $nameParts); 
  16. return $vars;