ComposerInstallersPiwikInstaller

Class PiwikInstaller.

Defined (1)

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

/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php  
  1. class PiwikInstaller extends BaseInstaller 
  2. /** 
  3. * @var array 
  4. */ 
  5. protected $locations = array( 
  6. 'plugin' => 'plugins/{$name}/',  
  7. ); 
  8.  
  9. /** 
  10. * Format package name to CamelCase 
  11. * @param array $vars 
  12. * @return array 
  13. */ 
  14. public function inflectPackageVars($vars) 
  15. $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name'])); 
  16. $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']); 
  17. $vars['name'] = str_replace(' ', '', ucwords($vars['name'])); 
  18.  
  19. return $vars;