WordPress at a glance
class is not described

Composer\Installers

RadPHPInstaller{} WC 1.0

No Hooks.

Return

null. Nothing.

Usage

$RadPHPInstaller = new RadPHPInstaller();
// use class methods

Methods

  1. inflectPackageVars($vars)

Code of RadPHPInstaller{} WC 5.2.2

<?php
class RadPHPInstaller extends BaseInstaller
{
    protected $locations = array(
        'bundle' => 'src/{$name}/'
    );

    /**
     * Format package name to CamelCase
     */
    public function inflectPackageVars($vars)
    {
        $nameParts = explode('/', $vars['name']);
        foreach ($nameParts as &$value) {
            $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
            $value = str_replace(array('-', '_'), ' ', $value);
            $value = str_replace(' ', '', ucwords($value));
        }
        $vars['name'] = implode('/', $nameParts);
        return $vars;
    }
}